/* Desktop Styles */

.about-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 10px;
}

.about-content {
  flex: 1;
  text-align: left;
  color: #333;
  line-height: 1.6;
}
.about-content h2 {
  color: var(--pink-color);
}

.about-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--secondary-color);
  letter-spacing: -0.5px;
}

.about-content p.sub-heading {
  font-size: 1.5rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.4;
}

.section {
  margin-bottom: 25px;
  padding-left: 10px;
  border-left: 3px solid var(--secondary-color);
}

.details-list {
  list-style: disc;
  padding-left: 25px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
}

.details-list li {
  margin-bottom: 10px;
  font-weight: 400;
}

.about-images {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.doctor-main-shape {
  width: 300px;
  height: 300px;
  overflow: hidden;
  border-radius: 20px;
  border: 3px solid #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  position: relative;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  margin-right: 20%;
}

.doctor-main-image {
  width: 151%;
  /* height: 151%; */
  object-fit: cover;
  transform: rotate(-45deg) translate(13.3%, -20.7%);
}

.small-thumbnails {
  display: flex;
  justify-content: space-around;
  width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.top {
  position: absolute;
  top: 91px;
  left: 70%;
}

.bottom-left {
  position: absolute;
  bottom: 110px;
  left: 360px;
}

.bottom-right {
  position: absolute;
  bottom: -41px;
  right: -50px;
}

.doctor-thumbnail {
  width: 100px;
  height: 100px;
  overflow: hidden;
  border-radius: 10px;
  border: 2px solid #fff;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: rotate(45deg);
}
.taged {
  position: absolute;
  bottom: 0px;
  right: 30%;
  font-size: 39px;
  background: #f40057;
  padding: 15px 90px;
  color: #fff;
  border-radius: 4px 30px;
  z-index: 12;
}

.thumbnail-image {
  object-fit: cover;
  width: 137%;
  transform: rotate(-45deg) translate(28%, -12%);
}

img.thumbnail-image[src="/assets/img/dr/profile-img.webp"] {
  width: 135%;
  transform: rotate(-45deg) translate(17%, -18%);
}
img.thumbnail-image[src="/assets/img/dr/DSC07985.webp"] {
  width: 135%;
  transform: rotate(-45deg) translate(17%, -18%);
}
img.thumbnail-image[src="/assets/img/dr/dr-6.webp"] {
  width: 135%;
  transform: rotate(-45deg) translate(27%, -18%);
}
img.thumbnail-image[src="/assets/img/dr/DSC08010.webp"] {
  width: 157%;
  transform: rotate(-45deg) translate(11%, -18%);
}



@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in {
  animation: fadeIn 1s ease;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-left {
  animation: slideInLeft 1s ease;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 1s ease;
}

/* Mobile Styles */

@media (max-width: 768px) {
  .about-container {
    display: block;
    padding: 20px;
  }

  .about-content {
    text-align: center;
  }

  .section {
    padding-left: 0;
    margin-bottom: 20px;
  }

  .details-list {
    padding-left: 15px;
    list-style: none;
  }

  .about-images {
    margin-top: 20px;
  }

  .doctor-main-shape {
    width: 100%;
    height: auto;
    transform: none;
    margin-right: 0;
  }

  .doctor-main-image {
    width: 100%;
    height: auto;
    transform: none;
  }

  .small-thumbnails {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin-top: -135px;
  }

  .top,
  .bottom-left,
  .bottom-right {
    position: static;
    margin-bottom: 10px;
  }
}
/**/
.watermark-logo img {
  width: 240px;
  position: absolute;
  bottom: 25px;
  left: 60px;
  opacity: 0.4;
}
.modern-hero {
  position: relative;
  min-height: 90vh;
  /* background-color: whitesmoke; */
  overflow: hidden;
  padding: 2rem;
  margin-bottom: 65px;
  padding-top: 6rem;
  padding-bottom: 5rem;
}

.hero-flow-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  height: 100%;
}

.fluid-shape-wrapper {
  position: absolute;
  right: -9%;
  top: 0%;
  /* transform: translateY(-50%); */
  width: 65%;
  /* height: 100vh; */
}

.liquid-shape {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--secondary-color);
  border-radius: 40% 60% 60% 40% / 60% 45% 55% 40%;
  animation: shapeFlow 20s infinite linear;
  opacity: 0.1;
}
.envelope-image {
  display: flex;
  justify-content: center;
}

.floating-image {
  margin-top: -12px;
  /* position: absolute; */
  /* right: 31%; */
  /* top: -3%; */
  /* transform: translateY(-50%); */
  /* width: 45%; */
  /* height: 100%; */
  /* width: 345px; */
  width: 343px;
  /* margin-top: 39px; */
  object-fit: cover;
  border-radius: 30px;
  box-shadow: 40px 40px 60px rgba(0, 0, 0, 0.08);
  clip-path: polygon(7% 0, 100% 0, 100% 100%, 0 100%);
  transition: transform 0.8s ease;
  object-position: center;
  z-index: 3;
}
.icons .icon6 img {
  width: 75px;
  position: absolute;
  left: 145px;
  top: 70px;
  z-index: 2;
  opacity: 0.4;
}
.icons .icon7 img {
  opacity: 0.6;
  width: 350px;
  position: absolute;
  left: 27rem;
  top: -10px;
  transform: rotate3d(1, 1, 1, 398deg);
}

.content-overlay {
  direction: rtl;
  list-style: circle;
  position: relative;
  z-index: 4;
  width: 50%;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 30px;
  box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.05);
  transform: translateX(40px);
}

.title-group {
  margin-bottom: 3rem;
}

.main-title {
  font-size: 3.5rem;
  color: #2c2c2c;
  line-height: 1.2;
  margin: 0;
}

.title-part {
  display: block;
  font-size: 1.5rem;
  font-family: "yassin", serif;
}

.title-part:first-child {
  color: var(--secondary-color);
  font-size: 3rem;
}

.animated-underline {
  width: 120px;
  height: 4px;
  background: var(--secondary-color);
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
}

.animated-underline::after {
  content: "";
  position: absolute;
  width: 40%;
  height: 100%;
  background: rgb(255 255 255 / 21%);
  animation: underlineFlow 2.5s infinite;
}

.achievement-bubbles {
  display: flex;
  gap: 1.5rem;
  margin: 2rem 0;
}

.bubble {
  background: white;
  padding: 1.5rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  position: relative;
  z-index: 3;
  color: var(--pink-color);
}

.bubble:hover {
  transform: translateY(-5px);
}

.bubble-icon {
  font-size: 1.8rem;
}

.core-expertise h2 {
  color: #444;
  margin-bottom: 1rem;
}

.expertise-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.expertise-list li {
  padding-right: 1.5rem;
  position: relative;
  font-family: "nawar";
  color: #3c4a51;
}

.expertise-list li::before {
  content: "▹";
  position: absolute;
  right: 0;
  color: var(--secondary-color);
}

@keyframes shapeFlow {
  0% {
    border-radius: 40% 60% 60% 40% / 60% 45% 55% 40%;
  }
  50% {
    border-radius: 50% 50% 60% 40% / 55% 60% 40% 45%;
  }
  100% {
    border-radius: 40% 60% 60% 40% / 60% 45% 55% 40%;
  }
}

@keyframes underlineFlow {
  0% {
    left: -40%;
  }
  100% {
    left: 140%;
  }
}

@media (max-width: 1200px) {
  .fluid-shape-wrapper {
    right: -25%;
    width: 80%;
  }

  .content-overlay {
    width: 50%;
  }
  .taged {
    bottom: -96px;
  }
  .about-images {
    margin-right: 35px;
  }
  .icons .icon7 img {
    top: -65px;
  }
}
@media (max-width: 768px) {
  .icons .icon7 img {
    top: -76px;
    left: 10rem;
  }
  .achievement-bubbles {
    flex-direction: column;
  }
  .taged {
    bottom: -132px;
    right: 34%;
  }
}
@media (max-width: 1113px) {
  .modern-hero {
    min-height: auto;
    padding: 2rem 1rem;
  }

  .fluid-shape-wrapper {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    margin-bottom: -100px;
  }

  .floating-image {
    position: relative;
    right: auto;
    top: -90px;
    transform: none;
    width: 100%;
    height: 100%;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    margin-top: 0;
  }
  .content-overlay {
    width: 100%;
    margin-top: -50px;
  }

  .main-title {
    font-size: 2.5rem;
  }
  .taged {
    display: none;
  }
  .icons .icon7 img {
    width: 260px;
    left: 10rem;
    top: -34px;
  }
  .icons .icon6 img {
    left: 10px;
    top: 110px;
  }
  .hero-flow-container {
    padding-top: 2rem;
  }
}

@media (min-width: 351px) and (max-width: 375px) {
  .icons .icon7 img {
    left: 8.1rem;
    top: -55px;
  }
  .icons .icon6 img {
    left: -10px;
    top: 71px;
  }
}
@media (max-width: 350px) {
  .floating-image {
    top: -58px;
  }
  .icons .icon7 img {
    left: 6rem;
  }
  .icons .icon6 img {
    left: -7px;
    width: 65px;
    top: 136px;
  }
}



@media (min-width: 0px) and (max-width: 768px) {
  .modern-hero {
    padding-top: 4rem;
  }
  .about-images {
    margin-right: 0px;
  }
}

@media (min-width: 1200px){
  .modern-hero {
    padding-top: 3rem;
  }
}


@media (max-width: 360px) {
  .floating-image {
    top: -53px;
  }
}



@media (max-width: 1113px) {
  .content-overlay {
    transform: none;
  }
  .fluid-shape-wrapper {
    height: auto;
  }
  .watermark-logo img {
    width: 185px;
  }
}