@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

/* —— Presentation timeline (one-shot, no loop) —— */
:root {
  --ease-premium: cubic-bezier(0.25, 0.8, 0.25, 1);
  --t-bg: 1.2s;
  --t-header: 1.2s;
  --dur-header: 0.8s;
  --t-doctor: 1.5s;
  --dur-doctor: 0.7s;
  --t-content: 2s;
  --dur-content: 0.8s;
  --t-row-base: 2.35s;
  --t-row-step: 0.15s;
  --dur-row: 0.5s;
  --t-banner: 3.05s;
  --t-descrip: 3.2s;
  --dur-green: 0.75s;
  --t-baby: 3.45s;
  --dur-baby: 0.65s;
  --t-footer: 3.85s;
  --dur-footer: 0.65s;
}

body {
  font-family: 'Cairo', sans-serif;
  width: 100%;
  height: 100vh;
  max-height: 100vh;
  text-align: left;
  direction: ltr;
  margin: 0;
  background: #0059a3;
  overflow: hidden;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: 'Cairo', sans-serif;
}

html {
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

/* ========== 1. Background: vertical reveal ========== */
.container {
  position: relative;
  width: 100%;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
}

.container::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  transform-origin: top center;
  will-change: transform;
  background: linear-gradient(
    to bottom,
    #f3f3f3 0%,
    #eef3f7 18%,
    #dfe9f2 35%,
    #63bdff 52%,
    #49a6f3 68%,
    #0a6abf 84%,
    #0059a3 100%
  );
  background-repeat: no-repeat;
  animation: bgReveal var(--t-bg) ease-out forwards;
}

@keyframes bgReveal {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

.box {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ========== 2. Header / logo ========== */
.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  will-change: transform, opacity;
  animation: headerSlideIn var(--dur-header) var(--ease-premium) var(--t-header) forwards;
}

@keyframes headerSlideIn {
  from {
    opacity: 0;
    transform: translateY(-36px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.logo-img {
  width: 55%;
  height: 65px;
  margin-top: 8px;
  text-align: center;
}

/* ========== 3. Doctor image ========== */
.doctor-img {
  position: relative;
  width: 100%;
  height: 46%;
  text-align: center;
  opacity: 0;
  will-change: transform, opacity;
  animation: doctorReveal var(--dur-doctor) var(--ease-premium) var(--t-doctor) forwards;
}

@keyframes doctorReveal {
  from {
    opacity: 0;
    transform: scale(0.95);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

.doctor-img img {
  width: 78%;
  height: 100%;
}

.doctor-img::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 35%;
  background: linear-gradient(
    to bottom,
    rgb(0 123 255 / 2%) 0%,
    rgb(152 197 237) 50%,
    rgb(129 198 255) 100%
  );
}

/* ========== 4. Main content strip (schedule + name column) ========== */
.content {
  width: 100%;
  height: 39.6%;
  display: flex;
  will-change: transform, filter;
  transform: translateY(40px);
  filter: blur(5px);
  animation: contentRise var(--dur-content) var(--ease-premium) var(--t-content) forwards;
}

/* Opacity omitted on parent so staggered children stay independently visible */
@keyframes contentRise {
  to {
    transform: translateY(0);
    filter: blur(0);
  }
}

.box-content-2 {
  width: 50%;
  height: 100%;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.banner-name-doctor {
  background-color: #129b47;
  width: 100%;
  height: 75px;
  padding: 20px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-family: ui-rounded;
  font-weight: bold;
  position: absolute;
  color: #fff;
  top: -22%;
  right: 0;
  border-radius: 40px 0 0 40px;
  opacity: 0;
  will-change: transform, opacity;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  animation: greenSlideBounce var(--dur-green) var(--ease-premium) var(--t-banner) forwards;
}

.descrip {
  background-color: #129b47;
  width: 90%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  font-weight: bold;
  position: absolute;
  top: 7%;
  right: 0;
  border-radius: 40px 0 0 40px;
  padding: 8px;
  color: #fff;
  opacity: 0;
  will-change: transform, opacity;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  animation: greenSlideBounce var(--dur-green) var(--ease-premium) var(--t-descrip) forwards;
}

@keyframes greenSlideBounce {
  0% {
    opacity: 0;
    transform: translateX(48px);
    filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }
  78% {
    opacity: 1;
    transform: translateX(-6px);
    filter: blur(0);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
  }
}

.part-img {
  display: flex;
  margin-top: 30px;
  width: 90%;
  height: 80%;
  background-color: #129b4700;
  text-align: center;
  justify-content: center;
  opacity: 0;
  will-change: transform, opacity;
  animation: babyRise var(--dur-baby) var(--ease-premium) var(--t-baby) forwards;
}

@keyframes babyRise {
  from {
    opacity: 0;
    transform: translateY(32px);
    filter: blur(5px);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  }
}

/* table section */
.box-content-1 {
  width: 50%;
  height: 100%;
  margin-top: -10%;
  margin-left: 2%;
  margin-right: 2%;
  background: #dcf0fc;
  border-radius: 30px;
  border: 3px solid #ffffff;
  padding: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  position: relative;
  will-change: box-shadow;
  animation: cardElevate var(--dur-content) var(--ease-premium) var(--t-content) forwards;
}

@keyframes cardElevate {
  from {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
  }
  to {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.762);
  }
}

.box-content-1 .line-box-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px;
}

.box-content-1 .line-box-title .p {
  font-family: 'Montserrat', sans-serif;
  margin-left: 5px;
}

.line-box-title .title-img-t {
  width: 42px;
  margin-left: 10px;
}

.line {
  width: 85%;
  height: 2px;
  background-color: #000;
  margin-top: 5px;
  margin-bottom: 1px;
  margin-left: 5%;
  margin-right: 5%;
}

.box-content-1 img {
  width: 100%;
  height: 100%;
}

.table-bg {
  position: absolute;
  top: 340px;
  left: 9px;
  width: 49%;
  height: 49%;
}

.FOOTER {
  width: 100%;
  height: 5%;
  background-color: #ffffff00;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  padding: 10px;
  color: #fff;
  border-radius: 40px 0 0 40px;
  opacity: 0;
  will-change: opacity;
  animation: footerFade var(--dur-footer) var(--ease-premium) var(--t-footer) forwards;
}

@keyframes footerFade {
  from {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.schedule-box {
  width: 100%;
  height: 100%;
  padding: 5px 15px;
  font-family: Arial, sans-serif;
}

.schedule-box h3 {
  text-align: center;
  font-size: 14px;
  color: #2b4c7e;
  margin-bottom: 4px;
}

/* ========== 5. Schedule rows: stagger ========== */
.schedule-box .row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  border-bottom: 1px dashed #b7c7dc;
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: #2b4c7e;
  opacity: 0;
  will-change: transform, opacity;
  animation: rowStagger var(--dur-row) var(--ease-premium) forwards;
}

.schedule-box .row:nth-child(1) {
  animation-delay: calc(var(--t-row-base) + 0 * var(--t-row-step));
}
.schedule-box .row:nth-child(2) {
  animation-delay: calc(var(--t-row-base) + 1 * var(--t-row-step));
}
.schedule-box .row:nth-child(3) {
  animation-delay: calc(var(--t-row-base) + 2 * var(--t-row-step));
}
.schedule-box .row:nth-child(4) {
  animation-delay: calc(var(--t-row-base) + 3 * var(--t-row-step));
}
.schedule-box .row:nth-child(5) {
  animation-delay: calc(var(--t-row-base) + 4 * var(--t-row-step));
}
.schedule-box .row:nth-child(6) {
  animation-delay: calc(var(--t-row-base) + 5 * var(--t-row-step));
}
.schedule-box .row:nth-child(7) {
  animation-delay: calc(var(--t-row-base) + 6 * var(--t-row-step));
}

@keyframes rowStagger {
  from {
    opacity: 0;
    transform: translateX(-28px);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

.row:last-child {
  border-bottom: none;
}

.row span:first-child {
  font-weight: bold;
}

.closed span:last-child {
  color: #cb0000;
  font-weight: bold;
}

/* ========== Accessibility: respect reduced motion ========== */
@media (prefers-reduced-motion: reduce) {
  .container::before,
  .logo,
  .doctor-img,
  .content,
  .box-content-1,
  .schedule-box .row,
  .banner-name-doctor,
  .descrip,
  .part-img,
  .FOOTER {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .container::before {
    transform: scaleY(1) !important;
  }

  .content {
    transform: none !important;
  }

  .box-content-1 {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.762);
  }
}
