* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
  background: #ffffff;
  color: #222;
}

/* SIDEBAR DESKTOP */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 290px;
  height: 100vh;
  background: #000;
  padding: 55px 35px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1000;
}

.sidebar-top,
.sidebar-main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.side-logo {
  width: 170px;
  height: auto;
  display: block;
  margin-bottom: 95px;
}

nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 38px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

nav a:hover,
nav a.active {
  opacity: 0.75;
}

.sidebar-footer {
  color: #8d8d8d;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

/* PAGINI INTERIOARE DESKTOP */
.content,
.inner-page {
  position: fixed;
  left: 290px;
  top: 0;
  width: calc(100vw - 290px);
  height: 100vh;
  background: #f1f1f1;
  overflow: hidden;
}

.top-banner {
  width: 100%;
  height: 245px;
  overflow: hidden;
  position: relative;
  background: #999;
}

.top-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  justify-content: center;
  align-items: center;
}

.overlay h2 {
  color: #fff;
  font-size: 56px;
  font-weight: 900;
  letter-spacing: 1px;
}

/* PANOURI DESPRE NOI / SERVICII */
.about-page {
  display: grid;
  grid-template-rows: 245px 1fr;
}

.about-banner {
  height: 245px;
}

.about-panels {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
  background: #f1f1f1;
  overflow: hidden;
}

.about-panel {
  min-width: 0;
  min-height: 0;
  height: 100%;
  border-radius: 16px;
  padding: 28px 34px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.about-panel-grey {
  background: #e7e7e7;
}

.about-panel-white {
  background: #ffffff;
}

.about-panel h3 {
  font-size: 34px;
  line-height: 1.15;
  margin-bottom: 20px;
  color: #222;
  flex-shrink: 0;
}

.panel-scroll {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 12px;
  font-size: 19px;
  line-height: 1.6;
}

.panel-scroll p {
  margin-bottom: 20px;
}

.panel-scroll ul {
  padding-left: 26px;
  margin: 15px 0 22px;
}

.panel-scroll li {
  margin-bottom: 14px;
}

.panel-scroll::-webkit-scrollbar {
  width: 8px;
}

.panel-scroll::-webkit-scrollbar-thumb {
  background: #b8b8b8;
  border-radius: 20px;
}

/* CONTACT DESKTOP */
.contact-page {
  position: fixed;
  left: 290px;
  top: 0;
  width: calc(100vw - 290px);
  height: 100vh;
  background: #f1f1f1;
  overflow: hidden;
}

.contact-top {
  padding: 35px 50px 25px;
  text-align: center;
}

.contact-top h1 {
  font-size: 40px;
  font-weight: 300;
  margin-bottom: 18px;
  color: #222;
}

.contact-top p {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 22px;
  line-height: 1.6;
  color: #444;
}

.contact-content {
  display: flex;
  gap: 30px;
  padding: 10px 30px 20px;
  align-items: flex-start;
}

.map-box {
  flex: 2;
}

.map-box iframe {
  width: 100%;
  height: 450px;
  border: none;
  border-radius: 10px;
}

.info-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-card {
  background: white;
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.contact-card h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #111;
}

.contact-card p {
  font-size: 18px;
  line-height: 1.6;
  color: #444;
}

.whatsapp-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.whatsapp-box span {
  font-size: 22px;
  color: #333;
}

.whatsapp-box img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  transition: 0.2s;
  cursor: pointer;
  margin-right: 75px;
}

.whatsapp-box img:hover {
  transform: scale(1.08);
}

/* TABLET / MOBIL - MENIU ORIZONTAL */
@media screen and (max-width: 1100px) {
  html,
  body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background: #f1f1f1;
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 18px 14px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border-radius: 0;
  }

  .sidebar-top,
  .sidebar-main {
    width: 100%;
    align-items: center;
  }

  .side-logo {
    width: 120px;
    margin: 0 0 14px 0;
  }

  nav {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 12px;
  }

  nav a {
    font-size: 14px;
    line-height: 1.1;
    text-align: center;
    padding: 9px 10px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    white-space: nowrap;
  }

  nav a.active {
    background: rgba(255,255,255,0.14);
    opacity: 1;
  }

  .sidebar-footer {
    margin-top: 14px;
    font-size: 11px;
  }

  .content,
  .inner-page,
  .contact-page {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .top-banner,
  .about-banner {
    height: 220px;
  }

  .overlay h2 {
    font-size: 40px;
    text-align: center;
    padding: 0 12px;
  }

  .about-page {
    display: block;
  }

  .about-panels {
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 18px;
    padding: 18px;
  }

  .about-panel {
    height: auto;
    min-height: 0;
    padding: 24px;
  }

  .about-panel h3 {
    font-size: 28px;
  }

  .panel-scroll {
    overflow: visible;
    padding-right: 0;
    font-size: 18px;
  }

  .contact-top {
    padding: 28px 18px 18px;
  }

  .contact-top h1 {
    font-size: 38px;
  }

  .contact-top p {
    font-size: 18px;
    line-height: 1.55;
  }

  .contact-content {
    flex-direction: column;
    padding: 16px;
    gap: 18px;
  }

  .map-box,
  .info-box {
    width: 100%;
  }

  .map-box iframe {
    height: 320px;
  }

  .contact-card {
    padding: 20px;
  }

  .contact-card h3 {
    font-size: 22px;
  }

  .contact-card p,
  .contact-card a {
    font-size: 17px;
    word-break: break-word;
  }

  .whatsapp-box img {
    width: 48px;
    height: 48px;
    margin-right: 0;
  }
}

@media screen and (max-width: 600px) {
  .sidebar {
    padding: 16px 10px 14px;
  }

  .side-logo {
    width: 100px;
    margin-bottom: 12px;
  }

  nav {
    gap: 8px;
  }

  nav a {
    font-size: 12px;
    padding: 8px 8px;
  }

  .sidebar-footer {
    font-size: 10px;
  }

  .top-banner,
  .about-banner {
    height: 185px;
  }

  .overlay h2 {
    font-size: 31px;
  }

  .about-panels {
    padding: 12px;
  }

  .about-panel {
    padding: 20px;
    border-radius: 12px;
  }

  .about-panel h3 {
    font-size: 24px;
  }

  .panel-scroll {
    font-size: 16px;
    line-height: 1.6;
  }

  .contact-top h1 {
    font-size: 32px;
  }

  .contact-top p {
    font-size: 16px;
  }

  .map-box iframe {
    height: 260px;
  }
}


/* =========================================================
   SIDEBAR LOGO ANIMATION
   Se aplică pe toate paginile, doar în zona logo-ului.
   ========================================================= */

.sidebar {
  overflow: hidden;
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 13%, rgba(255,255,255,0.045), transparent 28%),
    radial-gradient(circle at 24% 19%, rgba(0,145,255,0.085), transparent 25%),
    radial-gradient(circle at 72% 19%, rgba(0,240,120,0.075), transparent 23%),
    radial-gradient(circle at 30% 34%, rgba(255,35,30,0.075), transparent 21%),
    radial-gradient(circle at 76% 34%, rgba(255,215,40,0.075), transparent 21%);
}

.sidebar-top,
.sidebar-main,
.sidebar-footer,
.sidebar nav {
  position: relative;
  z-index: 6;
}

.sidebar-logo-wrap {
  position: relative;
  width: 100%;
  height: 205px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
  margin-bottom: 38px;
}

.sidebar-logo-wrap .side-logo {
  position: relative;
  z-index: 5;
  margin-bottom: 0;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.16));
}

.sidebar-tech-animation {
  position: absolute;
  inset: -25px -55px 0 -55px;
  z-index: 2;
  opacity: 0.78;
  pointer-events: none;
}

.sidebar-tech-animation svg {
  width: 100%;
  height: 100%;
  display: block;
}

.water-wave {
  fill: none;
  stroke: rgba(38,156,255,0.52);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-dasharray: 12 18;
  animation: waterFlow 7s linear infinite;
}

.water-wave.wave2 {
  stroke: rgba(130,210,255,0.34);
  stroke-width: 1.2;
  animation-duration: 10s;
}

.data-line {
  fill: none;
  stroke: rgba(55,240,125,0.44);
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-dasharray: 6 12;
  animation: dataFlow 5.5s linear infinite;
}

.packet {
  fill: rgba(55,240,125,0.92);
  filter: drop-shadow(0 0 6px rgba(55,240,125,0.75));
}

.packet.p1 { animation: packetMove1 4.5s linear infinite; }
.packet.p2 { animation: packetMove2 5.8s linear infinite; }
.packet.p3 { animation: packetMove3 6.5s linear infinite; }

.electric-line {
  fill: none;
  stroke: rgba(255,215,45,0.50);
  stroke-width: 1.7;
  stroke-linejoin: round;
  stroke-dasharray: 8 18;
  animation: electricPulse 2.1s linear infinite;
  filter: drop-shadow(0 0 5px rgba(255,210,30,0.65));
}

.heat-wave {
  fill: none;
  stroke: rgba(255,30,30,0.72);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 10 18;
  animation: heatRise 4.2s ease-in-out infinite;
  filter: drop-shadow(0 0 5px rgba(255,35,35,0.55));
}

.heat-wave.h2 {
  stroke: rgba(255,90,90,0.48);
  animation-duration: 5.8s;
}

.red-particle {
  fill: rgba(255,70,70,0.92);
  filter: drop-shadow(0 0 8px rgba(255,40,40,0.95));
}

.red-particle.r1 { animation: redFloat1 3.8s linear infinite; }
.red-particle.r2 { animation: redFloat2 4.6s linear infinite; }
.red-particle.r3 { animation: redFloat3 5.2s linear infinite; }

@keyframes waterFlow {
  from { stroke-dashoffset: 0; transform: translateX(-4px); }
  to { stroke-dashoffset: -120; transform: translateX(10px); }
}

@keyframes dataFlow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -90; }
}

@keyframes electricPulse {
  0% { stroke-dashoffset: 0; opacity: 0.18; }
  35% { opacity: 1; }
  100% { stroke-dashoffset: -70; opacity: 0.18; }
}

@keyframes heatRise {
  0% { stroke-dashoffset: 0; transform: translateY(12px); opacity: 0.25; }
  45% { opacity: 0.72; }
  100% { stroke-dashoffset: -110; transform: translateY(-16px); opacity: 0.25; }
}

@keyframes redFloat1 {
  0% { transform: translate(55px,170px); opacity:0; }
  15% { opacity:1; }
  100% { transform: translate(80px,80px); opacity:0; }
}

@keyframes redFloat2 {
  0% { transform: translate(95px,190px); opacity:0; }
  15% { opacity:1; }
  100% { transform: translate(120px,90px); opacity:0; }
}

@keyframes redFloat3 {
  0% { transform: translate(125px,175px); opacity:0; }
  20% { opacity:1; }
  100% { transform: translate(145px,70px); opacity:0; }
}

@keyframes packetMove1 {
  0% { transform: translate(188px,57px) scale(0.9); opacity:0; }
  15% { opacity:1; }
  100% { transform: translate(250px,42px) scale(0.9); opacity:0; }
}

@keyframes packetMove2 {
  0% { transform: translate(175px,86px) scale(0.75); opacity:0; }
  18% { opacity:1; }
  100% { transform: translate(252px,88px) scale(0.75); opacity:0; }
}

@keyframes packetMove3 {
  0% { transform: translate(185px,116px) scale(0.65); opacity:0; }
  20% { opacity:1; }
  100% { transform: translate(240px,136px) scale(0.65); opacity:0; }
}

@media screen and (max-width: 1100px) {
  .sidebar-logo-wrap {
    height: 135px;
    margin-bottom: 14px;
  }

  .sidebar-tech-animation {
    inset: -22px -35px 0 -35px;
    opacity: 0.68;
  }
}

@media screen and (max-width: 600px) {
  .sidebar-logo-wrap {
    height: 118px;
    margin-bottom: 12px;
  }

  .sidebar-tech-animation {
    opacity: 0.62;
  }
}
