/*
  BE-MEDWORKS V3 - UNIFIED STYLESHEET
  Design System: Modern Professional (Dark Theme)
*/

/* --- 1. Design System: Variables & Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap');

:root {
  /* Colors (Dark Theme) */
  --color-background: #0a192f;  /* Deep Navy Blue */
  --color-surface: #112240;     /* Lighter Navy/Slate for cards */
  --color-text: #c5c9d7;        /* Light Slate/Gray for paragraphs */
  --color-heading: #e6f1ff;     /* Crisp Light Blue/White for headings */
  --color-primary: #297bfe;     /* Your Vibrant Blue Accent */
  --color-white: #ffffff;
  --color-border: #233554;     /* Subtle border color */

  /* Typography */
  --font-sans: 'Source Sans Pro', sans-serif;

  /* Layout */
  --border-radius: 6px;
  --shadow-soft: 0 10px 30px -15px rgba(2,12,27,0.7);
}

/* --- 2. Base & Reset Styles --- */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  background-color: var(--color-background);
  font-family: var(--font-sans);
  color: var(--color-text);
  line-height: 1.6;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-heading);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}
a:hover {
  color: #88b3ff; /* Lighter blue for hover */
}


/* --- 3. Global Components: Navbar & Footer --- */

.navbar-v3 {
  padding: 0.75rem 0;
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1020;
  background-color: transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 0.3s ease;
}

.navbar-v3 .navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-heading) !important;
}

.navbar-on-hero {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 100;
  background-color: transparent !important;
}

.navbar-v3 .nav-link {

  font-weight: 600; /* Bolder for readability */
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  margin-left: 1.5rem; /* Adds space between items */
}

.navbar-v3 .nav-link:hover, .navbar-v3 .nav-link.active {
  color: var(--color-primary) !important;
}

.navbar-v3 .navbar-toggler {
  border-color: rgba(41, 123, 254, 0.919);
}

.navbar-v3 .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2841, 123, 254, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}



.footer-v3 {
  background-color: #020c1b;
  color: var(--color-text);
  padding: 4rem 0;
}
.footer-v3 h5 { color: #000; font-weight: 300;}
.footer-v3 a { color: var(--color-primary); }
.footer-v3 .table, .footer-v3 .table td {color: #000; /* Ensure table text is dark */}

/* --- 4. Page Headers: Homepage Hero & Subpage Header --- */
.hero-video-container {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
#bg-video {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1;
}
.video-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(10, 25, 47, 0.7); z-index: 2;
}
.hero-content {
  position: relative; z-index: 3; color: var(--color-white); max-width: 800px;
}
.scroll-down-indicator {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); color: var(--color-primary); font-size: 1.5rem; z-index: 3; animation: bounce 2.5s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-15px); }
}

.subpage-header {
  position: relative;
  padding: 11rem 0;
  text-align: center;
  color: var(--color-white);
  background-size: cover;
  background-position: center;
  background-image: var(--subpage-hero-bg, none);
  background-color: var(--color-background);
}
.subpage-header::before {
  content: '';
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(10, 25, 47, 0.7);
  z-index: 1;
}
.subpage-header .container {
  position: relative; z-index: 2;
}

/* --- 5. Content & Card Components --- */
.service-card-v3 {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 2.5rem 2rem;
  height: 100%;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card-v3:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-soft);
  border-color: var(--color-primary);
}
.service-card-v3 .card-icon {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}
.service-card-v3 h3 {
  color: var(--color-heading);
}


/* --- Additional Styles for Technique Cards (used on Hair Transplant, Hair Treatments, Aesthetics) --- */
.technique-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  overflow: hidden; /* Ensures rounded corners apply to images */
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.technique-card:hover {
  box-shadow: var(--shadow-soft);
  border-color: var(--color-primary);
}
.technique-card-img {
  width: 100%;
  height: 100%; /* Fixed height for consistency */
  object-fit: cover; /* Ensures image covers the area without distortion */
  border-radius: var(--border-radius) 0 0 var(--border-radius); /* Rounded only on left side for desktop */
}
.technique-card-body {
  padding: 2rem;
}
.technique-card-body h3 {
  color: var(--color-primary); /* Titles in accent blue */
  margin-bottom: 1rem;
}
.technique-card-body p {
  color: var(--color-text);
  margin-bottom: 1rem;
}
.benefits-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1.5rem;
}
.benefits-list li {
  margin-bottom: 0.5rem;
  color: var(--color-text);
  display: flex;
  align-items: flex-start;
}
.benefits-list li::before {
  content: '\f00c'; /* Font Awesome checkmark icon */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  color: var(--color-primary);
  margin-right: 0.8rem;
  font-size: 0.9rem;
  margin-top: 0.2rem;
}


/* Responsive adjustments for mobile */
@media (max-width: 767.98px) {
  .technique-card-img {
    height: 200px; /* Slightly smaller height on mobile */
    border-radius: var(--border-radius) var(--border-radius) 0 0; /* Rounded on top for mobile */
  }
}



/* --- 6. Button Components --- */
.btn-v3 {
  display: inline-block;
  font-weight: 600;
  padding: 0.8rem 2rem;
  border-radius: var(--border-radius);
  border: 2px solid var(--color-primary);
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-primary-v3 {
  background-color: var(--color-primary);
  color: var(--color-white);
}
.btn-primary-v3:hover {
  background-color: transparent;
  color: var(--color-primary);
}

/* --- 7. Mobile Responsive Fixes --- */
@media (max-width: 767.98px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }

  .navbar-collapse#navcol-1.show,
  .navbar-collapse#navcol-1.collapsing {
    background-color: rgba(17, 34, 64, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    padding: 1rem 1.5rem !important;
    border-radius: var(--border-radius) !important;
    margin-top: 0.75rem !important;
    border: 1px solid var(--color-border);
  }
  
}

/* --- Journey Page Components --- */

.journey-step {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

/* Large decorative step numbers */
.step-number {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-sans); /* Using sans-serif for a modern look */
  font-size: 12rem;
  font-weight: 700;
  color: var(--color-surface); /* Uses the card background color for a subtle effect */
  opacity: 0.3;
  z-index: 1;
  line-height: 1;
  user-select: none;
}

.journey-step.text-on-left .step-number {
  left: auto;
  right: -2rem;
}
.journey-step:not(.text-on-left) .step-number {
    left: -2rem;
    right: auto;
}

.journey-step .content-wrapper {
  position: relative;
  z-index: 2; /* Ensures content is above the step number */
}

/* Find this rule in your main.css file */
.feature-image {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  width: 100%;
  height: 350px; /* REDUCED - You can adjust this value as you like */
  object-fit: cover; /* This prevents the image from stretching */
}
.feature-row {
  padding: 5rem 0; /* INCREASED from 4rem. Adjust this value as you like. */
  border-bottom: 1px solid var(--color-border);
}

/* --- Set a different background image for each subpage --- */
/* The class on the <body> tag determines which image is used */

body.about-page .subpage-header {
  --subpage-hero-bg: url('/images/logo.svg'); /* From your original about.html */
}
body.services-page .subpage-header {
  --subpage-hero-bg: url('/images/plane3.jpg'); /* From your original services.html */
}
body.operations-page .subpage-header {
  --subpage-hero-bg: url('/images/journey1.png'); /* From your original operations.html */
}
body.hair-transplant-page .subpage-header {
  --subpage-hero-bg: url('/images/section1.jpeg'); /* From your original hair_transplant.html */
}
body.hair-treatments-page .subpage-header {
  --subpage-hero-bg: url('/images/haircare_index.jpg'); /* From your original hair-treatments.html */
 background-position: center 30%;
}
body.aesthetics-page .subpage-header {
  --subpage-hero-bg: url('/images/aestethics1.png'); /* From your original aesthetics.html */
}
body.results-page .subpage-header {
  --subpage-hero-bg: url('/images/results1.png'); /* From your original results.html */
}
body.journey-page .subpage-header {
  --subpage-hero-bg: url('/images/journey1.png'); /* From your original journey.html */
}

/* --- Clickable Card Wrapper --- */

.card-link-wrapper {
  display: block; /* Makes the link fill its container */
  text-decoration: none; /* Removes the default link underline */
  color: inherit; /* Makes text inside inherit its color, not the default link blue */
  height: 100%;
}

.card-link-wrapper:hover {
  text-decoration: none; /* Ensures no underline appears on hover */
  color: inherit;
}

/* This moves the hover effect so it triggers when you hover the new link */
.card-link-wrapper:hover .service-card-v3 {
  transform: translateY(-8px);
  box-shadow: 0 20px 30px -10px rgba(2,12,27,0.7);
  border-color: var(--color-primary);
}

/* We disable the original hover effect on the card div to avoid conflicts */
.service-card-v3:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--color-border);
}

/* --- Button Variations --- */

.btn-whatsapp-v3 {
  background-color: #25D366; /* Official WhatsApp Green */
  border-color: #25D366;
  color: var(--color-white) !important;
}

.btn-whatsapp-v3:hover {
  background-color: #1DAA54; /* A slightly darker green */
  border-color: #1DAA54;
  color: var(--color-white) !important;
  /* The transform and shadow are inherited from the base .btn-v3:hover style */
}

/* --- Instagram Gradient CTA Button --- */

.btn-instagram-gradient {
  /* Layout */
  display: inline-flex;
  align-items: center;
  
  /* SIZING: Adjust these values to change the button size */
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  
  /* Appearance */
  font-weight: 600;
  color: var(--color-white) !important;
  background: linear-gradient(135deg, #f9ce34 0%, #ee2a7b 50%, #6228d7 100%);
  border: none;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(238, 42, 123, 0.12);
  
  /* Animation */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-instagram-gradient:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(238, 42, 123, 0.2);
  color: var(--color-white) !important;
}

/* Icon size inside the button */
.btn-instagram-gradient .fab {
  font-size: 1.3rem;
}
/* --- Mobile Language Switcher --- */

.mobile-language-switcher {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto; /* Pushes switcher to the right */
  margin-right: 1rem; /* Adds space before the hamburger toggler */
}

.mobile-language-switcher a {
  font-size: 1.5rem; /* Adjust flag size */
  text-decoration: none;
  opacity: 0.5; /* Make the inactive flag dimmer */
  transition: opacity 0.2s ease;
}

.mobile-language-switcher a:hover {
  opacity: 0.75;
}

.mobile-language-switcher a.active {
  opacity: 1; /* Make the active flag fully visible */
}