/*
* Helios Clinic Kuwait - Modern Style Sheet
* Updated to HTML5 and Bootstrap 4 compatibility
* Version: 2.0.0
*/

/* Base Styles
=================================================================== */
:root {
  --primary-color: #080808;
  --secondary-color: #414141;
  --accent-color: #5bc2ce;
  --light-color: #ffffff;
  --dark-color: #000000;
  --gray-color: #f6f6f6;
  --border-color: #e7e7e7;
  --transition-speed: 0.3s;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Droid Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #fff;
  color: var(--secondary-color);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Droid Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-weight: normal !important;
  margin: 0 0 1rem 0;
  color: var(--secondary-color);
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin: 0 0 1rem 0;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

a:hover, a:focus {
  color: var(--accent-color);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid var(--border-color);
}

hr.clean {
  margin: 1rem 0;
  border: 0;
}

/* Color Classes
=================================================================== */
.color.white {
  background: #fff;
  color: var(--secondary-color);
}

.color.white i {
  color: var(--secondary-color);
}

.color.white h2 {
  color: var(--secondary-color) !important;
}

.color.blue {
  background: var(--accent-color);
  color: #fff;
}

.color.blue i {
  color: var(--accent-color);
}

.color.blue.transparent {
  background: rgba(91,194,206,.8);
  color: #fff;
}

.color.black {
  background: var(--secondary-color);
  color: #fff;
}

.color.black i {
  color: var(--secondary-color);
}

.color.yellow {
  background: #ffeb41;
  color: var(--secondary-color);
}

.color.yellow i {
  color: #ffeb41;
}

/* Modern Header & Navigation
=================================================================== */
.modern-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 65px; /* Decreased from 80px to 65px */
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  transition: all var(--transition-speed) ease;
  display: flex;
  align-items: center;
}

.modern-navbar {
  display: flex;
  align-items: center;
  height: 100%;
  width: 100%;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem 0 1.5rem;
  position: relative;
  gap: 1rem;
}

.navbar-logo {
  display: flex;
  align-items: center;
}

.navbar-logo img {
  max-height: 50px;
  width: auto;
}

.navbar-menu {
  display: flex;
}

.navbar-menu ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-menu ul li {
  margin: 0 0.5rem;
}

.navbar-menu ul li a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--secondary-color);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  transition: all var(--transition-speed) ease;
  position: relative;
}

.navbar-menu ul li a:hover,
.navbar-menu ul li a:focus,
.navbar-menu ul li a.active {
  color: var(--primary-color);
}

.navbar-menu ul li a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: all var(--transition-speed) ease;
  transform: translateX(-50%);
}

.navbar-menu ul li a:hover:after,
.navbar-menu ul li a:focus:after,
.navbar-menu ul li a.active:after {
  width: 80%;
}

.navbar-toggle {
  display: none;
  cursor: pointer;
  z-index: 1001;
  position: absolute;
  top: 50%;
  right: 1.5rem;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  outline: none;
  /* Ensure button stays in fixed position */
  position: absolute !important;
}

.navbar-toggle:hover {
  background-color: rgba(91, 194, 206, 0.1);
}

.navbar-toggle:hover .line-1,
.navbar-toggle:focus .line-1,
.navbar-toggle:active .line-1 {
  width: 70%;
}

.navbar-toggle:hover .line-3,
.navbar-toggle:focus .line-3,
.navbar-toggle:active .line-3 {
  width: 70%;
  margin-left: 30%;
}

.navbar-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(91, 194, 206, 0.3);
  /* Ensure focus doesn't cause movement */
  transform: translateY(-50%);
}

.hamburger-icon {
  position: relative;
  width: 22px;
  height: 22px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* Ensure vertical centering without animation */
  transition: none;
}

.hamburger-icon .line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  position: absolute;
  left: 0;
  /* Prevent any transform-based positioning issues */
  transform: translateY(0);
  will-change: transform, width, opacity;
}

.line-1 {
  top: 6px;
  width: 100%;
}

.line-2 {
  top: 10px;
  width: 100%;
  opacity: 1;
}

.line-3 {
  top: 14px;
  width: 100%;
}

.navbar-toggle.active {
  background-color: rgba(91, 194, 206, 0.1);
  /* Ensure active state doesn't cause movement */
  transform: translateY(-50%);
}

/* Removed pulse animation to prevent button movement */

/* Screen reader only utility class */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.navbar-toggle.active .line-1 {
  transform: translate3d(0, 4px, 0) rotate(45deg);
  top: 10px;
  width: 100%;
  transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.navbar-toggle.active .line-2 {
  opacity: 0;
  transform: translate3d(0, 0, 0);
  width: 0;
  left: 50%;
  transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.navbar-toggle.active .line-3 {
  transform: translate3d(0, -4px, 0) rotate(-45deg);
  top: 10px;
  width: 100%;
  transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 65px; /* Updated to match new header height */
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  z-index: 990; /* Reduced z-index to ensure it's below the header */
  max-height: calc(100vh - 65px); /* Updated to match new header height */
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border-top: 1px solid var(--border-color);
  transform: translateY(-10px);
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.mobile-menu.active {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0);
  position: fixed !important;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 1rem 0;
}

.mobile-menu ul li {
  margin: 0;
}

.mobile-menu ul li a {
  display: block;
  padding: 0.8rem 1.5rem;
  color: var(--secondary-color);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

.mobile-menu ul li a::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.mobile-menu ul li a:hover,
.mobile-menu ul li a:focus,
.mobile-menu ul li a.active {
  color: var(--accent-color);
  background: rgba(91, 194, 206, 0.05);
  border-left: 3px solid var(--accent-color);
  padding-left: 1.8rem;
}

.mobile-menu ul li a:hover::before,
.mobile-menu ul li a:focus::before,
.mobile-menu ul li a.active::before {
  width: 100%;
}

/* Remove any arrow icons from submenu items */
.mobile-menu ul li.submenu-active > a::after,
.mobile-menu ul li > a::after {
  display: none !important;
}

/* Boxes and Wrappers
=================================================================== */
.wrapper {
  padding: 2rem;
  margin: 0 auto;
  max-width: 1200px;
}

.box {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all var(--transition-speed) ease;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.box i {
  font-size: 2.5rem;
  margin: 0 1rem 1rem 0;
  color: var(--secondary-color);
  float: left;
  transition: all var(--transition-speed) ease;
}

.box h3 {
  margin-top: 0.5rem;
  transition: all var(--transition-speed) ease;
}

.box h5 {
  margin-top: -0.5rem;
  transition: all var(--transition-speed) ease;
}

.box:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.box:hover i,
.box:hover h3,
.box:hover h5 {
  color: #fff;
}

/* Title Styles
=================================================================== */
.title {
  border-bottom: 1px solid var(--gray-color);
  margin: 2rem 0 1.5rem 0;
  position: relative;
}

.title h1, .title h2, .title h3, .title h4, .title h5, .title h6 {
  border-bottom: 3px solid var(--primary-color);
  margin-bottom: -2px;
  display: inline-block;
  padding: 0 1rem 0.5rem 0;
}

.title-out h1, .title-out h2, .title-out h3, .title-out h4, .title-out h5, .title-out h6 {
  text-shadow: 1px 1px 0 #fff;
  font-weight: bold;
  margin-bottom: 1rem;
  margin-left: 1.5rem;
}

/* Team Member
=================================================================== */
.avatar {
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.avatar img {
  width: 100%;
  transition: transform var(--transition-speed) ease;
}

.avatar:hover img {
  transform: scale(1.05);
}

.team-name {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.position {
  font-size: 1rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.social_profiles {
  margin-top: 1rem;
}

.social-bookmarks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}

.social-bookmarks li {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.social-bookmarks li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-color);
  color: var(--secondary-color);
  transition: all var(--transition-speed) ease;
  text-indent: -9999px;
  position: relative;
}

.social-bookmarks li a:hover {
  background: var(--primary-color);
  color: #fff;
}

/* Dr Helen
=================================================================== */
.drhelen {
  margin: 1.5rem;
  border-radius: 1.5rem;
  background: #fff;
  padding: 1.5rem;
  max-height: 600px;
  max-width: 350px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

/* Footer Styles
=================================================================== */
.modern-footer {
  background-color: var(--secondary-color);
  color: #fff;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  flex: 0 0 auto;
  margin-right: 2rem;
}

.footer-logo-img {
  max-height: 60px;
  border-radius: 8px;
}

.footer-info {
  flex: 1 1 auto;
  text-align: center;
}

.footer-info p {
  margin-bottom: 0.5rem;
}

.footer-info a {
  color: var(--accent-color);
  transition: color var(--transition-speed) ease;
}

.footer-info a:hover {
  color: #fff;
  text-decoration: underline;
}

.flag-icon {
  height: 16px;
  vertical-align: middle;
  margin-left: 5px;
}

.footer-social {
  flex: 0 0 auto;
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  transition: all var(--transition-speed) ease;
}

.footer-social a:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-logo {
    margin-right: 0;
    margin-bottom: 1.5rem;
  }
  
  .footer-info {
    margin-bottom: 1.5rem;
  }
}

/* Modal Styles
=================================================================== */
.modal {
  display: none;
  position: fixed;
  z-index: 1050;
  padding: 1rem;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  background-color: #fff;
  margin: 2rem auto;
  padding: 1.5rem;
  border: none;
  border-radius: 0.5rem;
  width: calc(100% - 4rem);
  max-width: 800px;
  max-height: calc(100vh - 4rem);
  overflow: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close {
  color: #aaa;
  float: right;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1;
  padding: 0;
  margin: -0.5rem -0.5rem 0 0;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color var(--transition-speed) ease;
}

.close:hover,
.close:focus {
  color: var(--primary-color);
  text-decoration: none;
}

.picture {
  height: 480px;
  width: 280px;
  background-size: cover;
  background-position: center;
  border-radius: 0.5rem;
  margin: 0 auto;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.picturesmall {
  height: 300px;
  width: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 0.5rem;
  margin: 0 auto;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Slider Styles
=================================================================== */
#myslider {
  width: 100%;
  max-width: 1200px;
  height: auto;
  max-height: 650px;
  overflow: hidden;
  padding: 0.25rem;
  border-radius: 0.5rem;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

#myslider img {
  width: 100%;
  height: auto;
  border-radius: 0.25rem;
  object-fit: cover;
}

.myslide {
  position: absolute;
  width: 100%;
  height: 100%;
}

.myslide-copy {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border-bottom-left-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
}

.myslide-copy h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #fff !important;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.myslide-copy p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  max-width: 800px;
}

.myslide-copy cite {
  font-size: 1rem;
  font-style: italic;
  opacity: 0.9;
  display: block;
  margin-top: 0.5rem;
}

#prev, #next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 100;
  background: rgba(255,255,255,0.7);
  color: var(--secondary-color);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.8rem;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#prev {
  left: 1.5rem;
  margin-top: 0;
  margin-right: 0;
}

#next {
  right: 1.5rem;
  margin-top: 0;
  margin-left: 0;
}

#prev:hover, #next:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-50%) scale(1.1);
}

/* Home Section
=================================================================== */
#home {
  padding-top: 80px;
  position: relative;
  z-index: 1;
}

/* Responsive Styles
=================================================================== */
@media (max-width: 1200px) {
  .navbar-container {
    padding: 0 2rem;
  }
}

/* Mobile menu submenu styles */
.mobile-menu ul li ul {
  display: none;
  list-style: none;
  padding-left: 1rem;
  margin: 0.5rem 0 0 0;
  border-left: 2px solid var(--accent-color);
  background-color: #f9f9f9;
  border-radius: 4px;
}

.mobile-menu ul li.submenu-active > ul {
  display: block;
}

.mobile-menu ul li ul li a {
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: none;
  color: var(--secondary-color);
  transition: background-color var(--transition-speed) ease;
}

.mobile-menu ul li ul li a:hover,
.mobile-menu ul li ul li a:focus {
  background-color: var(--gray-color);
  color: var(--primary-color);
}

/* Add arrow indicator for submenu items */
.mobile-menu ul li > a::after {
  content: '';
  float: right;
  margin-left: 0.5rem;
  border: 5px solid transparent;
  border-top-color: var(--secondary-color);
  transition: transform var(--transition-speed) ease;
}

.mobile-menu ul li.submenu-active > a::after {
  transform: rotate(180deg);
}

@media (max-width: 992px) {
  .navbar-menu {
    display: none;
  }
  
  .navbar-toggle {
    display: flex;
    right: 1.5rem;
  }
  
  .mobile-menu {
    display: block;
  }
  
  .navbar-container {
    justify-content: flex-start;
    padding: 0 3rem 0 1.5rem;
    position: relative;
  }
  
  .navbar-logo {
    max-width: 70%;
  }
  
  .navbar-logo img {
    max-height: 50px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  h4 {
    font-size: 1.25rem;
  }
  
  h5 {
    font-size: 1rem;
  }
  
  h6 {
    font-size: 0.875rem;
  }
  
  /* Mobile menu improvements */
  .modern-header {
    height: 60px;
  }
  
  .mobile-menu {
    top: 60px;
    max-height: calc(100vh - 60px);
    z-index: 990;
  }
  
  .navbar-logo img {
    max-height: 55px;
  }
  
  /* Ensure mobile menu is fully visible */
  .mobile-menu ul {
    padding: 0.5rem 0;
  }
  
  .mobile-menu ul li a {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }
  
  .wrapper {
    padding: 1rem;
  }
  
  .drhelen {
    margin: 1rem;
    padding: 1rem;
    max-height: 500px;
    max-width: 300px;
  }
}

@media (max-width: 576px) {
  .modern-header {
    height: 60px;
  }
  
  .mobile-menu {
    top: 60px;
    max-height: calc(100vh - 60px);
    z-index: 990;
  }
  
  .navbar-logo {
    max-width: 70%;
  }
  
  .navbar-logo img {
    max-height: 55px;
  }
  
  .navbar-toggle {
    width: 36px;
    height: 36px;
    padding: 6px;
  }
  
  .hamburger-icon {
    width: 20px;
    height: 20px;
  }
  
  .modal-content {
    margin: 1rem auto;
    padding: 1rem;
    width: calc(100% - 2rem);
  }
  
  .picture {
    height: 400px;
    width: 240px;
  }
  
  .picturesmall {
    height: 250px;
    width: 170px;
  }
}
/* Enhanced Modern About Section Styles
=================================================================== */
.about-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f8ff 100%);
    color: #333;
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(91, 194, 206, 0.1) 0%, rgba(91, 194, 206, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.about-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(8, 8, 8, 0.05) 0%, rgba(8, 8, 8, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-header h2 {
    font-size: 42px;
    color: #080808;
    margin-bottom: 15px;
    font-weight: 700 !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 2px;
    background-color: #5bc2ce;
}

.section-divider {
    height: 4px;
    width: 100px;
    background: linear-gradient(to right, #080808, #5bc2ce, #080808);
    margin: 15px auto 0;
    border-radius: 4px;
    position: relative;
}

.section-divider::before, 
.section-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #5bc2ce;
}

.section-divider::before {
    left: -5px;
}

.section-divider::after {
    right: -5px;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

/* Enhanced Profile Card */
.profile-card {
    flex: 0 0 320px;
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(0);
    position: relative;
}

.profile-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.1);
}

.profile-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #080808, #5bc2ce);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.profile-card:hover::after {
    transform: scaleX(1);
}

.profile-image {
    height: 350px;
    overflow: hidden;
    position: relative;
}

.profile-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(0,0,0,0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-card:hover .profile-image::after {
    opacity: 1;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    filter: saturate(1.05);
}

.profile-card:hover .profile-image img {
    transform: scale(1.08);
}

.profile-details {
    padding: 30px;
    position: relative;
    background: white;
}

.profile-name {
    font-size: 26px;
    margin-bottom: 8px;
    color: #080808;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}

.profile-name::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #5bc2ce;
    transition: width 0.3s ease;
}

.profile-card:hover .profile-name::after {
    width: 100%;
}

.profile-position {
    font-size: 18px;
    color: #5bc2ce;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.profile-credentials {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 25px;
    color: #555;
    padding-bottom: 20px;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #080808;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #080808, #5bc2ce);
    z-index: -1;
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 50%;
}

.social-link:hover {
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-link:hover::before {
    transform: scale(1);
}

.social-link i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.social-link:hover i {
    transform: scale(1.2);
}

/* Enhanced About Text Content */
.about-text {
    flex: 1;
    min-width: 320px;
    background-color: white;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.about-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #080808, #5bc2ce);
}

.about-story {
    position: relative;
    z-index: 1;
}

.about-story p {
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 25px;
    color: #444;
}

.about-story strong {
    color: #080808;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.about-story strong::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgba(91, 194, 206, 0.3);
}

.about-story h4 {
    font-size: 24px;
    color: #080808;
    margin: 35px 0 20px;
    position: relative;
    padding-left: 15px;
    font-weight: 600;
}

.about-story h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 20px;
    background-color: #5bc2ce;
    border-radius: 3px;
}

/* Enhanced Timeline */
.education-timeline {
    position: relative;
    margin: 40px 0;
    padding-left: 35px;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(to bottom, #080808, #5bc2ce);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 5px;
    transition: transform 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(5px);
}

.timeline-marker {
    position: absolute;
    left: -43px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #5bc2ce;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #080808;
    transition: all 0.3s ease;
    z-index: 2;
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.2);
    background-color: #080808;
    box-shadow: 0 0 0 2px #5bc2ce, 0 0 10px rgba(91, 194, 206, 0.5);
}

.timeline-content {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.timeline-item:hover .timeline-content {
    background-color: #f0f8ff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-left: 3px solid #5bc2ce;
}

.timeline-content h4 {
    font-size: 20px;
    color: #080808;
    margin-bottom: 12px;
    padding-left: 0;
}

.timeline-content h4::before {
    display: none;
}

.timeline-content p {
    margin-bottom: 0;
    font-size: 15px;
}

/* Enhanced Service Cards */
.service-highlight {
    margin: 50px 0;
}

.service-highlight h4 {
    font-size: 24px;
    color: #080808;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    display: inline-block;
}

.service-highlight h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #5bc2ce, transparent);
}

.service-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 30px;
}

.service-card {
    flex: 1 1 300px;
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(0,0,0,0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(8, 8, 8, 0.03) 0%, rgba(91, 194, 206, 0.08) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(91, 194, 206, 0.2);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card h5 {
    font-size: 20px;
    color: #080808;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 12px;
    font-weight: 600;
}

.service-card h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #5bc2ce;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.service-card:hover h5::after {
    width: 80px;
}

.service-card p {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

/* Enhanced Gallery */
.gallery-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    flex: 1 1 200px;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.gallery-item::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 24px;
    color: white;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.gallery-item:hover img {
    transform: scale(1.15);
}

/* Enhanced Section Footer */
.section-footer {
    text-align: center;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.btn-primary {
    display: inline-block;
    padding: 14px 35px;
    background: linear-gradient(135deg, #080808, #5bc2ce);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #5bc2ce, #080808);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    letter-spacing: 1.5px;
}

.btn-primary:hover::before {
    opacity: 1;
}

/* Gallery Styles
=================================================================== */
.gallery-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    position: relative;
    overflow: hidden;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(91, 194, 206, 0.05) 0%, rgba(91, 194, 206, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.gallery-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(8, 8, 8, 0.05) 0%, rgba(8, 8, 8, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--secondary-color);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* Gallery Filter */
.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
    background: transparent;
    border: 2px solid var(--accent-color);
    border-radius: 30px;
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent-color);
    color: white;
}

/* Image Gallery */
.gallery-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 280px;
    opacity: 1;
    transform: scale(1);
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item a {
    display: block;
    height: 100%;
    width: 100%;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

.gallery-caption h5 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: white;
    font-weight: 600;
}

.gallery-caption p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.gallery-item:not(:has(video))::before {
    content: '+';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    opacity: 0;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:not(:has(video)):hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Video Gallery */
.video-gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.video-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: white;
}

.video-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.video-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.video-gallery {
    width: 100%;
    display: block;
    cursor: pointer;
    border-radius: 0;
    box-shadow: none;
    transition: all 0.3s ease;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-button {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    transform: scale(1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.play-button i {
    color: var(--accent-color);
    font-size: 24px;
    margin-left: 5px; /* Slight offset for play icon */
}

.video-item:hover .play-button {
    transform: scale(1.1);
    background: white;
}

.video-caption {
    padding: 20px;
    text-align: center;
}

.video-caption h5 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 600;
}

.video-caption p {
    margin: 0;
    font-size: 14px;
    color: var(--secondary-color);
    opacity: 0.8;
}

/* Responsive Styles for About Section
=================================================================== */
@media (max-width: 1200px) {
    .about-section {
        padding: 80px 0;
    }
    
    .section-header h2 {
        font-size: 38px;
    }
    
    .profile-image {
        height: 320px;
    }
}

@media (max-width: 991px) {
    .about-content {
        flex-direction: column;
    }
    
    .profile-card {
        flex: 0 0 100%;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .about-text {
        padding: 30px;
    }
    
    .timeline-content {
        padding: 15px;
    }
}

/* Responsive Navbar Styles
=================================================================== */
@media (max-width: 991px) {
    .navbar-menu {
        display: none;
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    .navbar-container {
        padding: 0 1rem;
    }
}

@media (max-width: 767px) {
    .about-section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .timeline-content h4 {
        font-size: 18px;
    }
    
    .service-card {
        flex: 1 1 100%;
        padding: 25px;
    }
    
    .gallery-preview {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
    }
    
    .gallery-item {
        height: 220px;
    }
    
    .video-gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
    }
    
    .play-button i {
        font-size: 20px;
    }
    
    .btn-primary {
        padding: 12px 30px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 28px;
    }
    
    .profile-image {
        height: 280px;
    }
    
    .profile-details {
        padding: 20px;
    }
    
    .profile-name {
        font-size: 22px;
    }
    
    .profile-position {
        font-size: 16px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .about-text {
        padding: 20px;
    }
    
    .education-timeline {
        padding-left: 25px;
    }
    
    .timeline-marker {
        left: -33px;
        width: 14px;
        height: 14px;
    }
    
    .about-story h4 {
        font-size: 20px;
    }
    
    .service-card h5 {
        font-size: 18px;
    }
    
    /* Gallery responsive styles */
    .gallery-section {
        padding: 60px 0;
    }
    
    .section-subtitle {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .gallery-filter {
        gap: 8px;
        margin-bottom: 25px;
    }
    
    .filter-btn {
        padding: 6px 15px;
        font-size: 12px;
    }
    
    .gallery-preview {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
    
    .gallery-item {
        height: 180px;
    }
    
    .gallery-caption h5 {
        font-size: 16px;
    }
    
    .gallery-caption p {
        font-size: 12px;
    }
    
    .gallery-item::before {
        width: 50px;
        height: 50px;
        font-size: 30px;
    }
    
    .video-gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
    }
    
    .play-button i {
        font-size: 18px;
    }
    
    .video-caption {
        padding: 15px;
    }
    
    .video-caption h5 {
        font-size: 16px;
    }
    
    .video-caption p {
        font-size: 12px;
    }
}
/* =========================================
   Increase Slider Height & Deco Icon ONLY
   ========================================= */

/* Increase overall slider height */
.sl-slider-wrapper,
.sl-slider,
.sl-slide,
.sl-slide-inner {
  min-height: 750px;
}

/* Increase only the deco icon size */
.sl-slide-inner .deco {
  width: 480px;
  height: 480px;
}
@media (max-width: 767px) {
  .sl-slider-wrapper,
  .sl-slider,
  .sl-slide,
  .sl-slide-inner {
    min-height: 540px;
  }

  .sl-slide-inner .deco {
    width: 210px;
    height: 210px;
  }
}
