/* ===== CSS CUSTOM PROPERTIES - MOBILE FIRST ===== */
:root {
  --primary-color: #00695c;
  --secondary-color: #004d40;
  --accent-color: #ffd700;
  --text-color: #000000;
  --white: #ffffff;
  --teal-dark: #18666A;
  --teal-mid: #6A9DA0;
  --teal-light: #18666A;
  --list-bg: #e0f2f1;
  --hover-bg: #b2dfdb;
  --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-medium: 0 6px 16px rgba(0, 0, 0, 0.25);
  --shadow-heavy: 0 6px 20px rgba(0, 0, 0, 0.1);
  --border-radius: 12px;
  --border-radius-large: 20px;
  --transition-smooth: 0.3s ease;
}

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

html {
  height: 100%;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  min-height: 100vh;
  height: auto;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}
/* ===== FONT IMPORTS ===== */
@font-face {
  font-family: 'Angelos';
  src: url('./fonts/Angelos.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Modernline';
  src: url('./fonts/modernline\ bold.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
}

/* ===== MAIN CONTAINER WITH 3 DIAGONAL SECTIONS ===== */
.mobile-container {
  width: 100%;
  min-height: 100vh;
  height: auto;
  max-width: 100%;
  display: flex;
  margin: 0 auto;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  background: 
    linear-gradient(110deg, var(--teal-dark) 0%, var(--teal-dark) 33.33%, transparent 33.33%),
    linear-gradient(110deg, transparent 33.33%, var(--teal-mid) 33.33%, var(--teal-mid) 66.66%, transparent 66.66%),
    linear-gradient(110deg, transparent 66.66%, var(--teal-light) 66.66%, var(--teal-light) 100%);
}

/* ===== SKELETON IMAGE CLIPPED TO MIDDLE DIAGONAL ===== */
.mobile-container::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0.2;
  background-image: url('img/PHOTO-2025-10-05-12-39-32-removebg-preview.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  mask-image: linear-gradient(
    110deg,
    transparent 0% 33.33%,
    #4a8c99 33.33% 66.66%,
    transparent 66.66% 100%
  );
  -webkit-mask-image: linear-gradient(
    110deg,
    transparent 0% 33.33%,
    #4a8c99 33.33% 66.66%,
    transparent 66.66% 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* ===== TOP HALF ===== */
.top-half {
  width: 100%;
  min-height: clamp(35vh, 40vh, 45vh);
  height: auto;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(15px, 3vw, 25px);
  gap: clamp(10px, 2vw, 20px);
  position: relative;
  z-index: 2;
}

/* ===== SKELETON SIDE - REMOVED ===== */
.skeleton-side {
  display: none;
}

.skeleton {
  display: none;
}

/* ===== TEXT SIDE ===== */
.text-side {
  flex: 1 1 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: clamp(10px, 2vw, 20px);
  position: relative;
  z-index: 2;
}

.tathastu {
  font-size: clamp(2.5rem, 5vw, 2.5rem);
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
  letter-spacing: clamp(0.5px, 0.15vw, 1px);
  line-height: 0.95;
  text-transform: uppercase;
  font-family: "Roboto", bold;
  width: 100%;
}

.physio {
  font-size: clamp(2.3rem, 3.5vw, 1.6rem);
  font-weight: 6000;
  color: var(--text-color);
  position: relative;
  left: 10%;  
  margin-top: clamp(10px, 2vw, 20px);
  line-height: 1.8;
  font-family: "modernline";
  letter-spacing: 2.2px;
  width: 100%;
}

.healing {
  font-size: clamp(2rem, 2.8vw, 1.3rem);
  color: var(--text-color);
  font-weight: 6000;
  position: relative;
  left: 26%;  
  margin-top: clamp(5px, 1.5vw, 15px);
  line-height: 1.5;
  font-family: "modernline";
  letter-spacing: 2.8px;
  display: inline-block;
  width: 100%;
}

/* ===== BOTTOM HALF ===== */
.bottom-half {
  width: 100%;
  min-height: clamp(55vh, 60vh, 65vh);
  height: auto;
  background: transparent;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: clamp(15px, 3vw, 25px);
  padding-top: clamp(20px, 4vw, 30px);
  padding-bottom: clamp(40px, 6vw, 60px);
  gap: clamp(10px, 2.5vw, 20px);
  position: relative;
  z-index: 2;
}

/* ===== NAVIGATION SIDE ===== */
.nav-side {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 5vh, 35px);
  justify-content: flex-start;
  min-width: 0;
  padding-left: clamp(5px, 1.5vw, 15px);
  padding-top: clamp(15px, 3vh, 25px);
  position: relative;
  z-index: 2;
}

.nav-button {
  text-decoration: none;
  color: var(--text-color);
  display: block;
  transition: all var(--transition-smooth);
  cursor: pointer;
  font-style: italic;
  position: relative;
}

.nav-button::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: clamp(2px, 0.3vw, 3px);
  background-color: var(--white);
  transition: width var(--transition-smooth);
}

.nav-button:hover::after {
  width: 100%;
}

.nav-button span {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: clamp(0.3px, 0.1vw, 0.5px);
  display: block;
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.nav-button:hover {
  color: var(--white);
  transform: translateX(clamp(3px, 0.5vw, 5px));
}

.nav-button:active {
  transform: translateX(clamp(2px, 0.3vw, 3px)) scale(0.98);
}

/* ===== DOCTOR SIDE ===== */
.doctor-side {
  flex: 0 0 auto;
  width: clamp(150px, 30vw, 200px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  z-index: 2;
}

.doctor {
  width: 100%;
  height: auto;
  max-height: clamp(40vh, 52vh, 55vh);
  aspect-ratio: 3/4;
  border-radius: var(--border-radius-large);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-bottom: clamp(8px, 1.5vh, 12px);
  object-fit: cover;
  object-position: center;
  transition: all var(--transition-smooth);
}

.doctor:hover {
  transform: scale(1.03) translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.doctor-title {
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  font-weight: bold;
  color: var(--text-color);
  margin-bottom: clamp(6px, 1vh, 8px);
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: center;
}

.phone-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 0.8vw, 6px);
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.15);
  padding: clamp(6px, 1.2vw, 8px) clamp(8px, 1.5vw, 12px);
  border-radius: 25px;
  transition: all var(--transition-smooth);
}

.phone-section:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.phone-icon {
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  color: var(--text-color);
  display: inline-block;
  vertical-align: middle;
  line-height: 1;

  /* Rotate the icon 180deg */
  transform: rotate(180deg);

  /* Add ringing animation while keeping rotation */
  animation: phone-ring 1s infinite;
}

/* Keyframes for ringing effect */
@keyframes phone-ring {
  0% { transform: rotate(180deg); }
  10% { transform: rotate(165deg); }
  20% { transform: rotate(195deg); }
  30% { transform: rotate(170deg); }
  40% { transform: rotate(190deg); }
  50% { transform: rotate(175deg); }
  60% { transform: rotate(185deg); }
  70% { transform: rotate(175deg); }
  80% { transform: rotate(185deg); }
  90% { transform: rotate(180deg); }
  100% { transform: rotate(180deg); }
}


.phone {
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  font-weight: bold;
  color: var(--text-color);
  text-decoration: none;
  transition: color var(--transition-smooth);
}

.phone:hover {
  color: var(--white);
}

/* ===== IMAGE PAGES STYLES ===== */
.navbar {
  background: linear-gradient(135deg, var(--teal-light), #f0f0f0);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-light);
}

.nav-container {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(8px, 1.5vw, 10px) clamp(10px, 2vw, 15px);
}

.back-link {
  color: var(--text-color);
  text-decoration: none;
  font-size: clamp(0.85rem, 1.5vw, 0.9rem);
  font-weight: bold;
  padding: clamp(6px, 1.2vw, 8px) clamp(8px, 1.5vw, 10px);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  transition: all var(--transition-smooth);
}

.back-link:hover {
  color: var(--primary-color);
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(-3px);
}

/* ===== IMAGE PAGE CONTAINER ===== */
.image-page-container {
  width: 100%;
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: var(--white);
  padding: clamp(8px, 2vw, 10px);
  padding-top: clamp(20px, 4vw, 40px);
  overflow-y: auto;
}

.responsive-image-wrapper {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.responsive-content-image {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: var(--shadow-medium);
}

.image-gallery-page {
  width: 100%;
  min-height: 100vh;
  background: var(--white);
  overflow-y: auto;
  overflow-x: hidden;
}

/* ===== PAYMENT PAGE STYLES ===== */
.content {
  max-width: min(90%, 900px);
  margin: clamp(10px, 2vw, 15px) auto;
  padding: clamp(12px, 2.5vw, 15px);
  background: var(--white);
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-heavy);
  text-align: center;
  animation: fadeIn 0.8s ease-in-out;
  border-left: 4px solid var(--primary-color);
}

.content h2 {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  margin-bottom: clamp(10px, 2vw, 15px);
  color: var(--primary-color);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--list-bg);
  padding-bottom: clamp(6px, 1.2vw, 8px);
}

.fee-title {
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  font-weight: bold;
  color: var(--text-color);
  margin-bottom: clamp(10px, 2vw, 12px);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.fee-list {
  list-style: none;
  margin: clamp(10px, 2vw, 12px) 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.5vw, 8px);
}

.fee-list li {
  font-size: clamp(0.8rem, 1.5vw, 0.85rem);
  font-weight: 600;
  padding: clamp(8px, 1.5vw, 10px) clamp(12px, 2.5vw, 15px) clamp(8px, 1.5vw, 10px) clamp(25px, 4vw, 30px);
  margin: 0;
  background: linear-gradient(135deg, var(--list-bg), #f0f8ff);
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius);
  color: var(--text-color);
  position: relative;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-light);
}

.fee-list li:hover {
  transform: translateX(clamp(3px, 0.5vw, 5px)) scale(1.01);
  background: linear-gradient(135deg, var(--hover-bg), var(--list-bg));
  box-shadow: var(--shadow-medium);
  border-color: var(--secondary-color);
}

.fee-list li:before {
  content: "💰";
  position: absolute;
  left: clamp(-6px, -1vw, -8px);
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(0.75rem, 1.4vw, 0.85rem);
  background: var(--primary-color);
  color: var(--white);
  width: clamp(20px, 3.5vw, 24px);
  height: clamp(20px, 3.5vw, 24px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-light);
}

.qr-container {
  margin: clamp(15px, 3vw, 20px) 0 clamp(10px, 2vw, 15px) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.5vw, 10px);
}

.qr-container:before {
  content: "Scan to Pay";
  font-size: clamp(0.85rem, 1.6vw, 0.95rem);
  font-weight: bold;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.payment-qr {
  max-width: clamp(140px, 40vw, 180px);
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  border: 3px solid var(--white);
  transition: transform var(--transition-smooth);
  background: var(--white);
  padding: clamp(6px, 1.2vw, 8px);
  object-fit: contain;
  object-position: center;
  aspect-ratio: 1/1;
}

.payment-qr:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 105, 92, 0.3);
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Extra Small Mobile (320px - 374px) */
@media (max-width: 374px) {
  .bottom-half {
    flex-direction: column;
    gap: 15px;
    padding-bottom: 50px;
  }
  
  .nav-side {
    width: 100%;
    padding-left: 0;
    align-items: center;
    gap: 15px;
  }
  
  .doctor-side {
    width: 100%;
    max-width: 200px;
  }
}

/* Small Mobile (375px - 479px) */
@media (min-width: 375px) and (max-width: 479px) {
  .tathastu {
    font-size: 2.2rem;
  }
  
  .physio {
    font-size: 1.4rem;
  }
  
  .healing {
    font-size: 1.1rem;
  }
}

/* Medium Mobile (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
  .tathastu {
    font-size: 2.5rem;
  }
  
  .physio {
    font-size: 1.6rem;
  }
  
  .healing {
    font-size: 1.3rem;
  }
  
  .doctor-side {
    width: clamp(170px, 32vw, 220px);
  }
}

/* Tablets (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .mobile-container {
    max-width: 95%;
    margin: 0 auto;
  }
  
  .doctor-side {
    width: clamp(190px, 30vw, 240px);
  }
  
  .nav-button span {
    font-size: 1.3rem;
  }
}

/* Laptops (992px - 1279px) */
@media (min-width: 992px) and (max-width: 1279px) {
  .mobile-container {
    max-width: 90%;
    margin: 0 auto;
  }
  
  .doctor-side {
    width: 220px;
  }
  
  .nav-button span {
    font-size: 1.4rem;
  }
}

/* Large Laptops/Desktops (1280px - 1599px) */
@media (min-width: 1280px) and (max-width: 1599px) {
  .mobile-container {
    max-width: 92%;
    margin: 0 auto;
  }
  
  .doctor-side {
    width: 240px;
  }
}

/* Extra Large Screens (1600px+) */
@media (min-width: 1600px) {
  .mobile-container {
    max-width: 1600px;
    margin: 0 auto;
  }
  
  .doctor-side {
    width: 250px;
  }
}

/* Landscape orientation for mobile devices */
@media (orientation: landscape) and (max-height: 500px) {
  .top-half {
    min-height: 48vh;
    padding: 10px;
  }
  
  .bottom-half {
    min-height: 52vh;
    padding: 10px;
    padding-bottom: 30px;
    flex-direction: row;
  }
  
  .doctor-side {
    width: clamp(120px, 28vw, 180px);
  }
  
  .doctor {
    max-height: 70vh;
  }
  
  .nav-side {
    gap: clamp(10px, 3vh, 20px);
  }
}

/* Portrait tablets */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .bottom-half {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-bottom: 60px;
  }
  
  .nav-side {
    width: 100%;
    align-items: center;
    padding-left: 0;
  }
  
  .doctor-side {
    width: clamp(260px, 45vw, 340px);
  }
}

/* ===== ANIMATIONS ===== */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.text-side {
  animation: slideIn 1s ease-out;
}

.nav-side {
  animation: slideIn 1.2s ease-out 0.3s both;
}

.doctor-side {
  animation: slideIn 1.2s ease-out 0.6s both;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== HIGH DPI SCREENS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .doctor,
  .responsive-content-image,
  .payment-qr {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Prevent text overflow on all screen sizes */
.tathastu,
.physio,
.healing,
.doctor-title,
.nav-button span {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

/* Touch device optimization */
@media (hover: none) and (pointer: coarse) {
  .nav-button,
  .phone-section,
  .doctor,
  .back-link {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  }
}
