/* =========================
   Main container
========================= */
.Middle {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 30px;
  font-family: 'Poppins', sans-serif;
  perspective: 1200px;
  
}

/* Left image styling */
.Middle-image {
  flex: 0 0 40%;
  max-width: 400px;
  transition: transform 0.5s ease;
  
  
}
.AirConPicture {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(74, 57, 57, 0.12);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  height: 700px;
  padding-top: 20px;
  padding-bottom: 20px/* =========================
  Header (Dark Glass / Modern)
========================= */
.header {
 display: flex;
 flex-direction: row;
 top: 10px; /* small gap from top */
 left: 50%;
 transform: translateX(-50%);
 height: 60px;
 position: fixed;
 width: calc(100% - 40px); /* almost full width */
 max-width: 1200px;
 padding: 0 20px;
 align-items: center;
 background: rgba(20, 20, 30, 0.85); /* dark semi-transparent */
 backdrop-filter: blur(10px);        /* glass blur effect */
 border-radius: 40px;                 /* pill corners */
 box-shadow: 0 8px 20px rgba(0,0,0,0.6);
 z-index: 1000;
 gap: 20px;
 border: 1px solid rgba(255,255,255,0.1); /* subtle border */
 transition: all 0.3s ease;
}

/* Left section (phone) */
.left-section {
 display: flex;
 align-items: center;
 gap: 10px;
 font-size: 16px;
 font-family: 'Poppins', sans-serif;
 font-weight: 600;
 color: #fff;
 text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

/* Right section (email) */
.right-section {
 display: flex;
 align-items: center;
 margin-left: auto; /* push to the right edge */
 gap: 10px;
 font-size: 16px;
 font-family: 'Poppins', sans-serif;
 font-weight: 600;
 color: #fff;
 text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

/* Icons */
.phone-icon,
.email-icon {
 height: 35px;
 filter: invert(1); /* keep visible on dark background */
}

/* Hover effect */
.header:hover {
 box-shadow: 0 12px 25px rgba(0,0,0,0.8);
 background: rgba(30, 30, 40, 0.95); /* slightly brighter on hover */
}

/* Responsive */
@media (max-width: 768px) {
 .header {
   flex-direction: column;
   height: auto;
   width: calc(100% - 20px);
   padding: 10px;
 }
 .left-section,
 .right-section {
   justify-content: center;
   width: 100%;
   margin: 5px 0;
 }
}SV;
}
.AirConPicture:hover {
  transform: scale(1.05) rotateZ(1deg);
  box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

/* Right column: stacked cards */
.Middle-left {
  flex: 1 1 55%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* =========================
   Pill Cards (Glassmorphism style)
========================= */
.Heat-pump,
.Air-con,
.Underfloor-h,
.Freon {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 25px 32px;
  border-radius: 60px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  box-shadow: 0 15px 40px rgba(0,123,255,0.15), 0 4px 20px rgba(0,0,0,0.1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
  animation: floatCard 6s ease-in-out infinite;
}

/* Card floating animation */
@keyframes floatCard {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

/* Hover effect: lift + glow + shine */
.Heat-pump:hover,
.Air-con:hover,
.Underfloor-h:hover,
.Freon:hover {
  transform: translateY(-12px) scale(1.07) rotateZ(-0.5deg);
  box-shadow: 0 30px 60px rgba(0,123,255,0.3), 0 10px 30px rgba(0,0,0,0.15);
}
.Heat-pump::after,
.Air-con::after,
.Underfloor-h::after,
.Freon::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, rgba(0,123,255,0.15), rgba(0,198,255,0.15), rgba(0,123,255,0.15));
  transform: rotate(30deg);
  pointer-events: none;
  transition: all 0.6s ease;
}
.Heat-pump:hover::after,
.Air-con:hover::after,
.Underfloor-h:hover::after,
.Freon:hover::after {
  transform: rotate(30deg) translateX(20%) translateY(20%);
}

/* =========================
   Icons
========================= */
.Heat-pump img,
.ACon-img,
.Underf-img,
.Freon-img {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  border-radius: 18px;
  transition: transform 0.6s ease, filter 0.6s ease;
  animation: floatIcon 4s ease-in-out infinite;
}
@keyframes floatIcon {
  0%,100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
.Heat-pump:hover img,
.Air-con:hover img,
.Underfloor-h:hover img,
.Freon:hover img {
  transform: translateY(-10px) scale(1.15);
  filter: drop-shadow(0 10px 20px rgba(0,123,255,0.35));
}

/* =========================
   Text
========================= */
.Heat-pump p,
.Air-con p,
.Underfloor-h p,
.Freon p {
  margin: 0;
  position: relative;
  font-weight: 800;
  font-size: clamp(14px, 2vw, 20px); /* responsive font */
  letter-spacing: 1px;
  color: #000; /* make visible */
}

/* Animated gradient text with glow */
.Heat-pump p::before { content: "Pompe de căldură"; }
.Air-con p::before { content: "Aer condiționat"; }
.Underfloor-h p::before { content: "Încălzire în pardoseală"; }
.Freon p::before { content: "Completare freon"; }

.Heat-pump p::before,
.Air-con p::before,
.Underfloor-h p::before,
.Freon p::before {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(270deg, #00C6FF, #007BFF, #00C6FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  animation: gradientText 3s ease infinite, fadeInText 1s ease forwards;
  text-shadow: 0 2px 6px rgba(0,123,255,0.3);
  opacity: 1;
}

/* Text fade-in */
@keyframes fadeInText {
  0% { opacity: 0; transform: translateY(-70%); }
  100% { opacity: 1; transform: translateY(-50%); }
}

/* Gradient slide animation */
@keyframes gradientText {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Hover text glow */
.Heat-pump:hover p::before,
.Air-con:hover p::before,
.Underfloor-h:hover p::before,
.Freon:hover p::before {
  text-shadow: 0 4px 10px rgba(0,198,255,0.7);
  transform: translateY(-50%) scale(1.08);
}

/* =========================
   Responsive
========================= */
@media (max-width: 768px) {
  .Middle {
    flex-direction: column;
    align-items: center;
  }
  .Middle-image,
  .Middle-left {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
