/* ==========================================================================
   Global Variables & Base Styles
   ========================================================================== */

:root {
  /* Colors */
  --primary-blue: #0A5B99;       /* Corporate Healthcare Blue */
  --primary-blue-dark: #074577;
  --secondary-teal: #14B8A6;      /* Teal */
  --teal-gradient: linear-gradient(135deg, #14B8A6, #0A5B99);
  
  --bg-white: #FFFFFF;
  --bg-soft-gray: #F8FAFC;
  --text-main: #334155;
  --text-light: #64748B;
  --text-heading: #0F172A;
  --footer-bg: #0B1120;           /* Dark Navy */
  
  /* Shadows & Borders */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-premium: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius-card: 20px;
  --radius-btn: 8px;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: 1px solid rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-soft-gray);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Utilities */
.text-center { text-align: center; }
.text-primary { color: var(--primary-blue); }
.text-teal { color: var(--secondary-teal); }
.gradient-text {
  background: var(--teal-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-weight: 600;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(10, 91, 153, 0.39);
}
.btn-primary:hover {
  background-color: var(--primary-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 91, 153, 0.23);
}

.btn-secondary {
  background-color: white;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}
.btn-secondary:hover {
  background-color: var(--primary-blue);
  color: white;
}

/* Section Padding */
.section-padding {
  padding: 80px 0;
}
.bg-white { background-color: var(--bg-white); }
.bg-gray { background-color: var(--bg-soft-gray); }

/* ==========================================================================
   Navigation
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  padding: 20px 0;
  background: transparent;
}

.navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: var(--glass-border);
  box-shadow: var(--glass-shadow);
  padding: 12px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-blue);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: max-content;
}

.logo span {
  white-space: nowrap;
}

.logo img {
  height: 48px;
  width: auto;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .logo span {
    display: none !important;
  }
  .logo {
    gap: 0 !important;
  }
}

.nav-links {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-shrink: 1;
}

@media (min-width: 1280px) {
  .nav-links {
    gap: 32px;
  }
}

.nav-links a {
  font-weight: 500;
  color: var(--text-heading);
  position: relative;
  white-space: nowrap;
}

.nav-links .btn-primary {
  padding: 10px 20px;
  font-size: 0.9rem;
}

@media (min-width: 1280px) {
  .nav-links .btn-primary {
    padding: 12px 28px;
    font-size: 1rem;
  }
}
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--secondary-teal);
  transition: var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-heading);
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom right, #ffffff, #f0f7ff);
  padding-top: 80px;
}

.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  animation: float 10s infinite ease-in-out alternate;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--primary-blue);
  top: -100px;
  right: -100px;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: var(--secondary-teal);
  bottom: -50px;
  left: -100px;
  animation-delay: -5s;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  padding: 0 20px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 50px) scale(1.1); }
}

/* ==========================================================================
   Internal Page Navbar Fix
   ========================================================================== */
body.internal-page .navbar:not(.scrolled) .logo {
  color: white;
}
/* Removed invert filter */
body.internal-page .navbar:not(.scrolled) .nav-links a,
body.internal-page .navbar:not(.scrolled) .mobile-menu-btn {
  color: white;
}
body.internal-page .navbar:not(.scrolled) .nav-links a::after {
  background-color: white;
}

@media (max-width: 1200px) {
  body.internal-page .navbar:not(.scrolled) .nav-links a {
    color: var(--text-heading);
  }
  body.internal-page .navbar:not(.scrolled) .btn-primary {
    background-color: var(--primary-blue);
    color: white !important;
    border: none;
  }
}

/* ==========================================================================
   Trust / Logos Strip (Modern Marquee)
   ========================================================================== */
.trust-strip {
  background: white;
  padding: 50px 0;
  border-bottom: 1px solid #e2e8f0;
  overflow: hidden;
}
.marquee-wrapper {
  display: flex;
  overflow: hidden;
  user-select: none;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  gap: 40px;
}
.marquee-group {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 40px;
  min-width: 100%;
  flex-shrink: 0;
  animation: scroll-left 15s linear infinite;
}
.marquee-group span {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-light);
  opacity: 0.6;
  white-space: nowrap;
  transition: var(--transition-smooth);
}
.marquee-group span:hover {
  color: var(--primary-blue);
  opacity: 1;
  transform: scale(1.05);
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-100% - 40px)); }
}

/* ==========================================================================
   Cards (Services / Projects)
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 3rem;
}

.premium-card {
  background: white;
  border-radius: var(--radius-card);
  padding: 40px 30px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.premium-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-premium);
  border-color: rgba(20, 184, 166, 0.2);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--bg-soft-gray);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

.premium-card:hover .card-icon {
  background: var(--primary-blue);
  color: white;
}

.premium-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.premium-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.card-link {
  color: var(--secondary-teal);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.card-link:hover {
  color: var(--primary-blue);
  gap: 12px;
}

/* ==========================================================================
   Modern Stats Card
   ========================================================================== */
.modern-stats-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-premium);
  padding: 40px;
  border: 1px solid rgba(20, 184, 166, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 10;
  margin-top: -60px; /* Overlap effect */
  margin-bottom: 40px;
}
.modern-stats-content {
  flex: 1;
}
.modern-stats-content h3 {
  font-size: 2rem;
  color: var(--text-heading);
  margin-bottom: 10px;
}
.modern-stats-content p {
  color: var(--text-light);
  font-size: 1.1rem;
}
.modern-stats-grid {
  flex: 1.5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  text-align: center;
}
.stat-box {
  background: white;
  padding: 20px 10px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.03);
  transition: var(--transition-smooth);
}
.stat-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(20, 184, 166, 0.3);
}
.stat-number {
  font-size: 2.2rem;
  margin-bottom: 5px;
  font-weight: 800;
  background: var(--teal-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-box p {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 992px) {
  .modern-stats-card {
    flex-direction: column;
    text-align: center;
    padding: 30px;
    margin-top: -40px; /* Keep overlap on mobile */
  }
  .modern-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }
}
@media (max-width: 576px) {
  .modern-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Director Overview
   ========================================================================== */
.about-overview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}
@media (min-width: 768px) {
  .about-overview {
    grid-template-columns: 1fr 1fr;
  }
}

.about-image {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.about-image::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: -5%;
  width: 120px;
  height: 120px;
  background: var(--teal-gradient);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.3;
  filter: blur(25px);
  transition: all 0.6s ease;
}

.about-image:hover::after {
  transform: scale(1.3) translate(-20px, -20px);
  opacity: 0.6;
}

.about-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-premium);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-image:hover img {
  transform: translateY(-12px);
}

.about-content ul {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.about-content li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.about-content li i {
  color: var(--secondary-teal);
}

/* ==========================================================================
   Timeline / Workflow
   ========================================================================== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--primary-blue);
  opacity: 0.2;
  transform: translateX(-50%);
}
.timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  position: relative;
}
.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}
.timeline-content {
  width: 45%;
  background: white;
  padding: 30px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
}
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 30px;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: var(--secondary-teal);
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.2);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--footer-bg);
  color: white;
  padding: 80px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-brand p {
  color: #94A3B8;
  margin-top: 20px;
}
.footer h4 {
  font-size: 1.25rem;
  margin-bottom: 24px;
  color: white;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: #94A3B8;
}
.footer-links a:hover {
  color: var(--secondary-teal);
  padding-left: 5px;
}
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #94A3B8;
  font-size: 0.875rem;
}

/* ==========================================================================
   Hidden Future Modules
   ========================================================================== */
.future-module {
  display: none !important;
}

/* ==========================================================================
   Animations & Utilities
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-slow);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Page Headers & Internal Pages
   ========================================================================== */
.page-header {
  padding: 160px 0 80px;
  background: var(--primary-blue);
  background: linear-gradient(to right, var(--primary-blue-dark), var(--primary-blue));
  color: white;
  text-align: center;
}
.page-header h1 {
  font-size: 3rem;
  color: white;
  margin-bottom: 1rem;
}
.page-header p {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* About */
.mission-vision {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.mv-card {
  background: white;
  padding: 40px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition-smooth);
}
.mv-card:hover {
  transform: translateY(-5px);
}
.mv-card i {
  font-size: 2.5rem;
  color: var(--secondary-teal);
  margin-bottom: 20px;
}

/* Services */
.accordion {
  background: white;
  border-radius: var(--radius-btn);
  margin-bottom: 15px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.accordion-header {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  background: var(--bg-soft-gray);
  transition: var(--transition-smooth);
}
.accordion-header:hover {
  background: #e2e8f0;
}
.accordion-content {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
}
.accordion.active .accordion-content {
  padding: 20px;
  max-height: 800px;
}
.accordion.active .accordion-header i {
  transform: rotate(180deg);
}

/* Projects */
.filter-btn-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}
.filter-btn {
  background: white;
  border: 1px solid var(--text-light);
  padding: 8px 20px;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-weight: 500;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
}
.project-card .project-img {
  height: 200px;
  background: #cbd5e1;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  margin: -40px -30px 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  overflow: hidden;
}
.project-item.hidden {
  display: none;
}

/* Team & Gallery */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.masonry-item {
  background: white;
  border-radius: var(--radius-btn);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.masonry-item .img-placeholder {
  width: 100%;
  height: 250px;
  background: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

/* Contact */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}
.contact-info-card {
  background: white;
  padding: 30px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
}
.contact-info-card h4 {
  margin-bottom: 10px;
  color: var(--primary-blue);
}
.contact-form {
  background: white;
  padding: 40px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-premium);
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}
.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-btn);
  font-family: inherit;
  transition: var(--transition-smooth);
}
.form-control:focus {
  outline: none;
  border-color: var(--secondary-teal);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
  .hero h1 { font-size: 3rem; }
  .about-overview { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

 /* Hide logo text on very small screens to make room for hamburger menu */
@media (max-width: 480px) {
  .logo span { display: none; }
  .logo {gap: 0;}
}

@media (max-width: 1200px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: white;
    flex-direction: column;
    padding: 40px 20px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-md);
    overflow-y: auto;
  }
  .nav-links.active { left: 0; }
  .mobile-menu-btn { display: block; }
  
  .hero h1 { font-size: 2.5rem; }
  .hero-btns { flex-direction: column; }
  
  .timeline::before { left: 30px; }
  .timeline-item, .timeline-item:nth-child(even) {
    flex-direction: column;
    align-items: flex-end;
  }
  .timeline-content { width: calc(100% - 70px); }
  .timeline-dot { left: 30px; transform: translate(-50%, 0); top: 20px; }
  
  .footer-grid { grid-template-columns: 1fr; }
}
