/*
  index.css - Main Stylesheet for RSIGCI Company Website
  Contains layout, typography, responsive, and component styles for all pages.
  Last updated: 2024-06-09
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
  font-family: 'Inter', sans-serif;
}

.gradient-bg {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1e40af 100%);
}

.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-effect-dark {
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-30px);
  animation: slideInLeft 0.8s ease-out forwards;
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  opacity: 0;
  transform: translateX(30px);
  animation: slideInRight 0.8s ease-out forwards;
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

.floating {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  from { box-shadow: 0 0 20px rgba(59, 130, 246, 0.5); }
  to { box-shadow: 0 0 30px rgba(59, 130, 246, 0.8); }
}

.form-input {
  transition: all 0.3s ease;
  border: 2px solid #e5e7eb;
  background-color: #ffffff;
}

.form-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}

.form-input:hover {
  border-color: #d1d5db;
}

.btn-primary {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

.job-card {
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.job-card:hover {
  border-color: #3b82f6;
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.progress-bar {
  width: 0%;
  transition: width 0.3s ease;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.loading-overlay {
  backdrop-filter: blur(5px);
}

.form-input-error {
  border-color: #dc2626 !important;
  background-color: #fef2f2 !important;
}

.error-message {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  display: block;
}

.file-error {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  text-align: left;
}

.recaptcha-error {
  color: #dc2626;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.success-checkmark svg {
  display: block;
  margin: 0 auto;
}

.animate-fade-in { animation: fadeInModal 0.5s cubic-bezier(0.4,0,0.2,1); }
@keyframes fadeInModal {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 640px) {
  .job-card {
    margin-bottom: 1rem;
  }
  
  .job-card h3 {
    font-size: 1.125rem;
    line-height: 1.5;
  }
  
  .job-card p {
    font-size: 0.875rem;
    line-height: 1.4;
  }
}

.toast {
  /* Add your toast styles here */
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-dot.active {
  background-color: #f97316 !important;
  transform: scale(1.2);
}

.carousel-control {
  background: rgba(0, 0, 0, 0.3);
  border: none;
  padding: 1rem;
  border-radius: 50%;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.carousel-control:hover {
  background: rgba(0, 0, 0, 0.5);
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .carousel-control {
    padding: 0.75rem;
  }
}
.carousel-dots-mobile-fix {
  margin-bottom: 3.5rem;
}
@media (min-width: 768px) {
  .carousel-dots-mobile-fix {
    margin-bottom: 2rem;
  }
} 

/* Milestone Tooltip Styles */
/* Horizontal Milestone Timeline Styles */
.milestone-horizontal {
  min-width: 3rem;
}
.milestone-tooltip {
  z-index: 50;
  pointer-events: none;
  white-space: normal;
}
.milestone-btn:focus + .milestone-tooltip,
.milestone-btn:active + .milestone-tooltip {
  display: block !important;
  pointer-events: auto;
}
@media (max-width: 768px) {
  .milestone-tooltip {
    left: 50% !important;
    width: 90vw !important;
    min-width: 180px;
    max-width: 95vw;
  }
}
@media (hover: none) and (pointer: coarse) {
  .milestone-btn:active + .milestone-tooltip {
    display: block !important;
    pointer-events: auto;
  }
}
@keyframes fadeInTooltip {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
  animation: fadeInTooltip 0.3s cubic-bezier(0.4,0,0.2,1);
} 

/* --- Header Gradient and Layout --- */
.custom-header-nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 2rem;
  background: linear-gradient(90deg, #b2f7c1 0%, #ffffff 50%, #a3d8f4 100%);
  border-bottom: 1px solid #2222;
  min-height: 56px;
  position: relative;
  z-index: 100;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.header-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.header-company {
  font-size: 1.25rem;
  font-weight: bold;
  color: #222;
  letter-spacing: 0.5px;
}
.header-tagline {
  font-size: 0.85rem;
  color: #1a237e;
  opacity: 1;
}
.header-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.header-link {
  background: none;
  border: none;
  color: #1a237e;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s;
}
.header-link:hover {
  color: #1565c0;
}
.header-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 1.5rem;
}
.hamburger-icon {
  display: block;
  width: 28px;
  height: 3px;
  background: #222;
  position: relative;
}
.hamburger-icon::before,
.hamburger-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 28px;
  height: 3px;
  background: #222;
  transition: 0.2s;
}
.hamburger-icon::before {
  top: -8px;
}
.hamburger-icon::after {
  top: 8px;
}
@media (max-width: 900px) {
  .header-nav-links {
    gap: 1rem;
  }
}
@media (max-width: 700px) {
  .header-nav-links {
    display: none;
  }
  .header-hamburger {
    display: block;
  }
  .custom-header-nav {
    padding: 0.5rem 1rem;
  }
  .header-logo-text {
    font-size: 0.95rem;
  }
}
/* Remove old nav styles if present */
nav.glass-effect-dark, .glass-effect-dark {
  background: none !important;
  box-shadow: none !important;
  border: none !important;
} 

/* --- Freeze Header --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #fff; /* or your gradient/bg color */
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.custom-header-nav {
  min-height: 64px;
  align-items: center;
  display: flex;
  justify-content: space-between;
}
body {
  padding-top: 64px; /* offset for fixed header, adjust if header is taller */
}
@media (max-width: 600px) {
  .custom-header-nav {
    min-height: 56px;
  }
  body {
    padding-top: 56px;
  }
}

/* --- Hero Section Full Height --- */
.hero-section {
  min-height: calc(100vh - 64px); /* full viewport minus header */
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding-top: 0;
  padding-bottom: 0;
}
@media (max-width: 600px) {
  .hero-section {
    min-height: calc(100vh - 56px);
  }
}

/* Ensure hero background images and content fill the section */
.hero-bg-image {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hero-container {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (max-width: 900px) {
  .hero-container {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: 100%;
  }
}
.hero-left {
  flex: 1 1 0;
  text-align: left;
  padding-right: 2rem;
}
.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: #0a1929;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.hero-description {
  font-size: 1.15rem;
  color: #263238;
  margin-bottom: 2.5rem;
  max-width: 500px;
}
.hero-buttons {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.hero-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 2.5rem;
  padding: 1rem 2.5rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.hero-btn-green {
  background: #2ecc40;
  color: #fff;
}
.hero-btn-green:hover {
  background: #27ae60;
}
.hero-btn-blue {
  background: #3498db;
  color: #fff;
}
.hero-btn-blue:hover {
  background: #217dbb;
}
.hero-right {
  flex: 1 1 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
}
.hero-content-on-top {
  position: relative;
  z-index: 2;
}
.fade-image {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.4,0,0.2,1);
}
.fade-image.show {
  opacity: 1;
}
.hero-section > *:not(.hero-bg-image) {
  position: relative;
  z-index: 2;
}
.hero-circle-overlay {
  display: none !important;
}
.hero-circle-green {
  width: 740px;
  height: 740px;
  border: 18px solid #2ecc40;
  top: -20px;
  left: -20px;
  opacity: 0.22;
}
.hero-circle-blue {
  width: 600px;
  height: 600px;
  border: 16px solid #3498db;
  bottom: 30px;
  right: 30px;
  opacity: 0.18;
}
.hero-see-more-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2.5rem;
}
.hero-see-more {
  color: #217dbb;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: underline;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.hero-see-more:hover {
  color: #2ecc40;
}
.hero-scroll-indicator {
  color: #217dbb;
  font-size: 2rem;
  opacity: 0.85;
}
@media (max-width: 1200px) {
  .hero-image-wrapper {
    width: 450px;
    height: 450px;
    top: 0;
    right: 0;
  }
  .hero-image {
    width: 450px;
    height: 450px;
    top: -112.5px;
    right: -112.5px;
  }
}
@media (max-width: 900px) {
  .hero-container {
    flex-direction: column;
    padding: 2rem 1rem 0 1rem;
  }
  .hero-right {
    width: 100%;
    justify-content: center;
    align-items: center;
  }
  .hero-image-wrapper {
    position: static;
    width: 234px;
    height: 234px;
    margin: 0 auto 0 0;
    top: 0;
    right: 0;
  }
  .hero-image {
    width: 234px;
    height: 234px;
    top: -58.5px;
    right: -58.5px;
  }
}
@media (max-width: 600px) {
  .hero-bg-image {
    width: 100vw;
    height: 100vh;
    min-width: 100vw;
    min-height: 100vh;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    opacity: 0.4;
  }
  .hero-image-wrapper {
    width: 99px;
    height: 99px;
    top: 0;
    right: 0;
  }
  .hero-image {
    width: 99px;
    height: 99px;
    top: -25.2px;
    right: -25.2px;
  }
}
/* Remove old hero section background and floating icon styles */
.gradient-bg, .floating, .scroll-indicator { display: none !important; } 

/* --- About Section --- */
.about-section {
  padding: 3rem 0 2rem 0;
  background: #f8fbff;
}
.about-cards-row {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}
.about-card {
  background: #fff;
  border-radius: 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  padding: 2.5rem 2rem 2rem 2rem;
  flex: 1 1 300px;
  min-width: 280px;
  max-width: 370px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
}
.about-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #eaf6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #3498db;
  position: absolute;
  top: -32px;
  left: 32px;
  box-shadow: 0 2px 8px rgba(52,152,219,0.10);
}
.mission-icon { color: #3498db; background: #eaf6ff; }
.vision-icon { color: #2ecc40; background: #eafbe7; }
.values-icon { color: #8e44ad; background: #f3e8ff; }
.about-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
  text-align: center;
}
.about-card-text {
  font-size: 1.05rem;
  color: #222;
  text-align: center;
}
.about-values-list {
  list-style: disc inside;
  text-align: left;
  margin: 0;
  padding: 0 0 0 1.2rem;
}
/* --- Company Section --- */
.company-section {
  background: #f8fbff;
  padding: 2rem 0 2rem 0;
}
.company-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #174ea6;
  text-align: center;
  margin-bottom: 0.5rem;
}
.company-address {
  text-align: center;
  color: #444;
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}
.company-row {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}
.company-card {
  background: #fff;
  border-radius: 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  padding: 2rem 2rem 2rem 2rem;
  flex: 1 1 350px;
  min-width: 300px;
  max-width: 600px;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.company-card.company-location {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 2rem 2rem 2rem 2rem;
}
.company-card-title {
  margin-bottom: 1rem;
  color: #174ea6;
}
.company-card-map {
  width: 100%;
  height: 320px;
  margin: 0;
  padding: 0;
  display: flex;
}
.company-card-map iframe {
  width: 100%;
  height: 100%;
  min-height: 250px;
  border-radius: 1.5rem;
  border: none;
  display: block;
}
.company-card-text {
  font-size: 1.05rem;
  color: #222;
}
.company-card-map iframe {
  width: 100%;
  height: 250px;
  border-radius: 1.5rem;
  border: none;
}
/* --- Leadership Section --- */
.leadership-section {
  background: #fff;
  padding: 3rem 0 2rem 0;
}
.leadership-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.leadership-text {
  flex: 1 1 350px;
  min-width: 300px;
  max-width: 600px;
  text-align: left;
  margin-bottom: 1.5rem;
}
.leadership-title {
  font-size: 2rem;
  font-weight: 800;
  color: #217dbb;
  margin-bottom: 1.2rem;
}
.leadership-desc {
  font-size: 1.15rem;
  color: #222;
}
.leadership-image-wrapper {
  flex: 1 1 350px;
  min-width: 300px;
  max-width: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.leadership-image {
  width: 100%;
  max-width: 420px;
  border-radius: 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}
/* --- Milestones Section --- */
.milestones-section {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.milestones-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 400px;
}

.milestones-container,
.milestones-section {
  overflow: visible;
}

.milestone-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.milestone-nav-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.milestone-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: translateY(-50%) scale(1);
}

.milestone-nav-left {
  left: -25px;
}

.milestone-nav-right {
  right: -25px;
}

.milestones-gallery {
  display: flex;
  flex-direction: row !important;
  gap: 2rem;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 1rem 0;
  max-width: 100%;
}

.milestones-gallery::-webkit-scrollbar {
  display: none;
}

.milestone-card:first-child.active,
.milestone-card:first-child:hover {
  transform: scale(1.1) translateX(0);
}

.milestone-card {
  width: 320px;
  height: 320px;
  background: #eaf6ff;
  border-radius: 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  flex: 0 0 320px;
  margin-bottom: 1rem;
  transition: width 0.3s, box-shadow 0.3s, border 0.3s, transform 0.3s, z-index 0.3s;
  border: 3px solid transparent;
  position: relative;
  z-index: 1;
  overflow: hidden;
  cursor: pointer;
}

.milestone-card:hover,
.milestone-card.active {
  transform: scale(1.1);
  z-index: 10;
  border: 3px solid #217dbb;
  box-shadow: 0 12px 36px rgba(33,125,187,0.13);
  background: #f8fbff;
}

.milestone-info {
  margin: 2rem auto 0 auto;
  background: #174ea6;
  color: #fff;
  border-radius: 2rem;
  padding: 1.5rem 2rem;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(33,125,187,0.10);
  font-size: 1.1rem;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.milestone-info-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.milestone-info-desc {
  font-size: 1rem;
  opacity: 0.95;
}

.milestones-dots-row {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  align-items: center;
  margin-top: 0.5rem;
}

.milestone-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #3498db;
  opacity: 0.25;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  transition: background 0.2s, opacity 0.2s;
  cursor: pointer;
}

.milestone-dot:hover,
.milestone-dot-active {
  background: #217dbb;
  opacity: 1;
  padding: 0 0.7rem;
}

.milestone-year-label {
  position: absolute;
  top: 18px;
  left: 18px;
  background: #217dbb;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(33,125,187,0.10);
  z-index: 30;
  letter-spacing: 1px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.milestone-card:hover .milestone-year-label,
.milestone-card.active .milestone-year-label {
  background: #3498db;
  color: #fff;
  font-size: 1.18rem;
  box-shadow: 0 4px 16px rgba(52,152,219,0.18);
  transform: scale(1.12);
  transition: all 0.2s;
  z-index: 30;
  opacity: 1;
}

.milestone-img {
  width: 90%;
  height: 80%;
  object-fit: cover;
  border-radius: 1.2rem;
  margin: 0 auto;
  display: block;
  margin-top: 2.2rem;
  box-shadow: 0 4px 16px rgba(33,125,187,0.10);
  transition: transform 0.3s ease;
}

.milestone-card:hover .milestone-img,
.milestone-card.active .milestone-img {
  transform: scale(1.1);
  z-index: 20;
  position: relative;
}

@media (max-width: 900px) {
  .milestone-img {
    width: 95%;
    height: 75%;
    margin-top: 1.2rem;
  }
  
  .milestone-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .milestone-nav-left {
    left: -20px;
  }
  
  .milestone-nav-right {
    right: -20px;
  }
}

@media (max-width: 600px) {
  .milestones-gallery {
    padding-right: 1.5rem;
    scroll-padding-right: 1.5rem;
    min-width: unset;
    max-width: unset;
    min-height: unset;
    max-height: unset;
    width: unset;
    height: unset;
    margin: unset;
    gap: unset;
    display: flex;
    flex-direction: row !important;
    align-items: stretch;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: visible;
  }
  .milestone-card {
    width: 160px;
    height: 160px;
    flex: 0 0 160px;
    margin: 0;
    display: block;
    padding: unset;
    border-width: 3px !important;
    border-style: solid !important;
    border-color: transparent !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  }
  .milestone-card.active {
    width: 210px;
    border-color: #217dbb !important;
    box-shadow: 0 12px 36px rgba(33,125,187,0.13);
  }
  .milestone-img {
    width: 98%;
    height: 70%;
    margin-top: 0.7rem;
    border-radius: 1.2rem;
    box-shadow: 0 4px 16px rgba(33,125,187,0.10);
  }
  .milestone-year-label {
    font-size: 1.05rem;
    padding: 0.3rem 0.9rem;
    top: 18px;
    left: 18px;
    margin-top: 0;
    margin-left: 0;
    border-radius: 1rem;
  }
  .milestone-expanded-title {
    font-size: 1.08rem;
    margin-top: 0.7rem;
    margin-bottom: 0.3rem;
  }
  .milestone-expanded-desc {
    font-size: 0.97rem;
    margin-bottom: 0.7rem;
  }
  .milestone-dot {
    width: 6px !important;
    height: 6px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 2px !important;
    padding: 0 !important;
  }
}
@media (max-width: 900px) {
  .about-cards-row, .company-row, .leadership-row {
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
  }
  .milestones-gallery {
    flex-direction: row !important;
    gap: 1.5rem;
    align-items: stretch;
  }
  .about-card, .company-card, .leadership-text, .leadership-image-wrapper, .milestone-card {
    max-width: 100%;
    min-width: 0;
  }
  .about-card-icon {
    left: 50%;
    transform: translateX(-50%);
  }
  .milestone-card {
    width: 240px;
    height: 240px;
    flex: 0 0 240px;
  }
  .milestone-card.active {
    width: 300px;
  }
  .milestone-info {
    max-width: 95vw;
    padding: 1rem 0.7rem;
  }
}
@media (max-width: 600px) {
  .about-section, .company-section, .leadership-section, .milestones-section {
    padding: 1.5rem 0 1rem 0;
  }
  .about-card, .company-card {
    padding: 1.2rem 0.7rem 1.2rem 0.7rem;
  }
  .leadership-title {
    font-size: 1.2rem;
  }
  .company-title {
    font-size: 1.3rem;
  }
  .milestone-card {
    width: 110px;
    height: 110px;
    flex: 0 0 110px;
  }
  .milestone-card.active {
    width: 150px;
  }
  .milestone-info {
    font-size: 0.95rem;
    min-height: 60px;
  }
} 

@media (max-width: 1024px) {
  .company-row {
    gap: 1.2rem;
  }
  .company-card {
    max-width: 100%;
    min-width: 0;
  }
}

@media (max-width: 900px) {
  .company-row {
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
  }
  .company-card {
    max-width: 100%;
    min-width: 0;
    margin-bottom: 1.5rem;
    padding: 1.5rem 1rem 1.5rem 1rem;
  }
  .company-card-map {
    height: 220px;
  }
}

@media (max-width: 600px) {
  .company-title {
    font-size: 1.5rem;
  }
  .company-address {
    font-size: 1rem;
    margin-bottom: 1.2rem;
  }
  .company-card {
    padding: 1rem 0.5rem 1rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.98rem;
  }
  .company-card-title {
    font-size: 1rem;
    margin-bottom: 0.7rem;
  }
  .company-card-map {
    height: 160px;
  }
}

@media (max-width: 480px) {
  .company-title {
    font-size: 1.1rem;
  }
  .company-card {
    padding: 0.7rem 0.2rem 0.7rem 0.2rem;
    font-size: 0.93rem;
  }
  .company-card-map {
    height: 110px;
  }
}

.company-card-map iframe {
  width: 100%;
  height: 100%;
  min-height: 80px;
  border-radius: 1.5rem;
  border: none;
  display: block;
}

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

body {
  font-size: 1rem;
}

@media (max-width: 600px) {
  body {
    font-size: 0.98rem;
  }
} 

@media (max-width: 375px) {
  .company-title {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
  }
  .company-address {
    font-size: 0.85rem;
    margin-bottom: 0.7rem;
  }
  .company-card {
    padding: 0.4rem 0.1rem 0.4rem 0.1rem;
    border-radius: 0.7rem;
    font-size: 0.85rem;
  }
  .company-card-title {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
  }
  .company-card-map {
    height: 70px;
  }
  .hero-title {
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
  }
  .hero-description {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }
  .about-card {
    padding: 0.7rem 0.2rem 0.7rem 0.2rem;
    border-radius: 0.7rem;
    font-size: 0.85rem;
    min-width: 0;
    max-width: 100%;
  }
  .about-card-title {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
  }
  .milestone-card {
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
    font-size: 0.7rem;
  }
  .milestone-card.active {
    width: 100px;
  }
  .milestone-info {
    font-size: 0.8rem;
    min-height: 30px;
    padding: 0.5rem 0.2rem;
  }
  .btn-primary {
    font-size: 0.9rem;
    padding: 0.7rem 1.2rem;
    border-radius: 1.2rem;
    min-width: 44px;
    min-height: 44px;
  }
  /* Ensure close icon in mobile menu is touch-friendly */
  #mobileMenu .fa-times {
    min-width: 44px;
    min-height: 44px;
    font-size: 1.5rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  /* Prevent overflow for long text in cards */
  .about-card-text, .company-card-text, .leadership-desc {
    word-break: break-word;
    font-size: 0.85rem;
  }
  /* Add spacing to avoid squished content */
  .about-card, .company-card, .leadership-text, .milestone-info {
    margin-bottom: 0.7rem;
  }
  /* Ensure form controls are touch-friendly */
  input[type="text"], input[type="email"], input[type="tel"], select, textarea {
    min-height: 44px;
    font-size: 0.98rem;
    padding: 0.5rem 0.7rem;
  }
} 

@media (max-width: 900px) {
  .header-link {
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .milestone-dot {
    min-width: 44px;
    min-height: 44px;
    font-size: 1rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .btn-primary, button, .milestone-nav-btn {
    min-width: 44px;
    min-height: 44px;
    font-size: 1rem;
    padding: 0.7rem 1.2rem;
    border-radius: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  input[type="text"], input[type="email"], input[type="tel"], select, textarea {
    min-height: 44px;
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .header-link, .milestone-dot, .btn-primary, button, .milestone-nav-btn {
    min-width: 44px;
    min-height: 44px;
    font-size: 1rem;
    padding: 0.5rem 0.7rem;
  }
  input[type="text"], input[type="email"], input[type="tel"], select, textarea {
    min-height: 44px;
    font-size: 0.98rem;
  }
} 

@media (max-width: 600px) {
  .hero-section {
    position: relative;
    overflow: hidden;
  }
  .hero-bg-image {
    width: 100vw;
    height: 100vh;
    min-width: 100vw;
    min-height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    z-index: 0;
    pointer-events: none;
  }
  .hero-image {
    width: 100vw;
    height: 100vh;
    min-width: 100vw;
    min-height: 100vh;
    object-fit: cover;
    border-radius: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    opacity: 0.7;
    transition: opacity 1s cubic-bezier(0.4,0,0.2,1);
  }
  .hero-content-on-top, .hero-container, .hero-left, .hero-right {
    position: relative;
    z-index: 2;
  }
  .hero-see-more-wrapper {
    position: relative;
    z-index: 3;
  }
  .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255,255,255,0.85);
    z-index: 1;
    pointer-events: none;
  }
} 

html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
}

html {
  overflow-y: scroll;
}

@media (max-width: 600px) {
  .hero-image-wrapper, .hero-image {
    max-width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
  }
} 

.milestone-focus-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.2);
  z-index: 30;
  pointer-events: none;
  transition: opacity 0.3s;
}
@media (max-width: 600px) {
  .milestones-section.milestone-focus-active .milestone-focus-overlay {
    display: block;
    pointer-events: auto;
  }
  .milestones-section.milestone-focus-active .milestone-card.active {
    position: fixed !important;
    top: 50%;
    left: 50%;
    width: 90vw !important;
    height: 70vh !important;
    max-width: 95vw;
    max-height: 80vh;
    transform: translate(-50%, -50%) scale(1) !important;
    margin: 0;
    z-index: 50;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1rem 0.5rem 0.5rem 0.5rem;
    transition: opacity 0.6s;
  }
  .milestones-section.milestone-focus-active .milestone-card {
    transition: opacity 0.6s;
  }
  .milestones-section.milestone-focus-active .milestone-card.active .milestone-img {
    width: 100%;
    height: 60vw;
    max-height: 45vh;
    object-fit: contain;
    border-radius: 1.2rem;
    margin: 0 auto 1rem auto;
    box-shadow: 0 4px 16px rgba(33,125,187,0.10);
    display: block;
  }
  .milestone-modal-desc {
    font-size: 1rem;
    color: #222;
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    max-width: 90vw;
    word-break: break-word;
  }
  .milestone-modal-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5em;
    letter-spacing: 0.5px;
    text-align: center;
    color: #fff;
  }
  .milestone-modal-description {
    font-size: 1.08rem;
    opacity: 1;
    color: #fff;
    text-align: center;
  }
  .milestones-section.milestone-focus-active .milestone-focus-arrow {
    display: block;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 60;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: background 0.2s;
  }
  .milestones-section.milestone-focus-active .milestone-focus-arrow.left {
    left: 10vw;
  }
  .milestones-section.milestone-focus-active .milestone-focus-arrow.right {
    right: 10vw;
  }
} 

.milestone-blur-bg {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 25;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
  backdrop-filter: blur(8px);
}
@media (max-width: 600px) {
  .milestones-section.milestone-focus-active .milestone-blur-bg {
    display: block;
    opacity: 1;
  }
} 

.milestone-focus-arrow {
  display: none !important;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.4,0,0.2,1);
}
.milestones-section.milestone-focus-active .milestone-focus-arrow {
  display: flex !important;
  opacity: 1;
  transition: opacity 0.35s cubic-bezier(0.4,0,0.2,1);
}
.milestone-focus-arrow svg {
  color: #fff;
  stroke: #fff;
  width: 28px;
  height: 28px;
  display: block;
}
.milestone-focus-arrow:disabled {
  opacity: 0.5 !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
}
.milestone-focus-arrow i,
.milestone-focus-arrow svg {
  margin: 0;
  padding: 0;
  line-height: 1;
  font-size: 2rem;
  vertical-align: middle;
}
@media (max-width: 600px) {
  .leadership-text {
    text-align: justify;
  }
} 

@media (max-width: 600px) {
  .about-card,
  .company-card,
  .leadership-text,
  .milestone-card {
    border: 2px solid #e5e7eb;
    border-radius: 0.7rem;
    margin: 0.3rem 0;
    padding: 0.7rem;
    box-sizing: border-box;
  }
} 

@media (max-width: 600px) {
  .milestones-gallery {
    padding-right: 1.5rem;
    scroll-padding-right: 1.5rem;
  }
} 

@media (max-width: 600px) {
  .milestones-section.milestone-focus-active .milestone-focus-arrow {
    top: 36%;
    transform: translateY(-50%);
  }
} 

@media (max-width: 600px) {
  /* Hide the default milestone nav arrows above the gallery when in focus mode */
  .milestones-section.milestone-focus-active .milestone-nav-btn {
    display: none !important;
  }
} 

@media (max-width: 600px) {
  .milestones-section.milestone-focus-active .milestone-focus-close {
    display: block !important;
    position: fixed;
    top: 2.5vh;
    right: 4vw;
    z-index: 100;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: background 0.2s;
  }
  .milestone-focus-close i {
    margin: 0;
    padding: 0;
    line-height: 1;
    vertical-align: middle;
  }
} 

@media (max-width: 600px) {
  .milestone-focus-arrow {
    display: none !important;
  }
  .milestones-section.milestone-focus-active .milestone-focus-arrow {
    display: flex !important;
  }
} 

#mobileMenu {
  backdrop-filter: blur(12px);
  background: rgba(30, 64, 175, 0.85) !important;
} 

.milestone-expanded-title {
  color: #174ea6;
  font-size: 1.35rem;
  font-weight: 800;
  text-align: center;
  margin-top: 1.1rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
  opacity: 0;
  animation: fadeInUp 0.7s cubic-bezier(0.4,0,0.2,1) forwards;
}
.milestone-expanded-desc {
  color: #222;
  font-size: 1.08rem;
  text-align: center;
  margin-bottom: 1.1rem;
  opacity: 0;
  animation: fadeInUp 0.7s cubic-bezier(0.4,0,0.2,1) 0.1s forwards;
}
@media (max-width: 600px) {
  .milestone-expanded-title {
    font-size: 1.08rem;
    margin-top: 0.7rem;
    margin-bottom: 0.3rem;
  }
  .milestone-expanded-desc {
    font-size: 0.97rem;
    margin-bottom: 0.7rem;
  }
} 

/* --- Make hero background images low opacity --- */
.hero-bg-image {
  opacity: 0.18 !important;
}

/* --- Center hero content --- */
.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 0 2rem;
  width: 100%;
  position: relative;
  z-index: 2;
  text-align: center;
}
.hero-left {
  padding: 0;
  text-align: center;
  width: 100%;
}
.hero-buttons {
  justify-content: center;
}
@media (max-width: 900px) {
  .hero-container {
    padding: 2rem 1rem 0 1rem;
  }
} 

/* --- Force center hero description and buttons --- */
.hero-description {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  display: block;
}
.hero-buttons {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 2rem;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100%;
} 

/* Add visible focus styles for navigation links and buttons */
.header-link:focus, .header-hamburger:focus, #mobileMenu a:focus {
  outline: 2px solid #174ea6;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(33, 125, 187, 0.25);
  background: #eaf6ff;
  color: #174ea6 !important;
  z-index: 2;
} 

/* --- UX and Touch Improvements --- */
.btn-primary:active {
  background: #ea580c !important;
  color: #fff !important;
  box-shadow: 0 0 0 2px #f97316 inset;
}
.header-link:active, .header-link.active, #mobileMenu a:active {
  background: #e5e7eb !important;
  color: #2563eb !important;
  box-shadow: none !important;
}
@media (max-width: 600px) {
  .btn-primary, .header-link, #mobileMenu a, button, .milestone-nav-btn {
    min-width: 44px;
    min-height: 44px;
    font-size: 1rem;
    padding: 0.5rem 0.7rem;
    box-sizing: border-box;
  }
} 

#mobileMenu a,
#mobileMenu a:focus,
#mobileMenu a:active,
#mobileMenu a:visited,
#mobileMenu a:focus-visible,
#mobileMenu a:focus-within {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
  background: none !important;
  color: #fff !important;
  text-decoration: none !important;
} 

/* Fix: Always show current page in breadcrumb as blue */
.breadcrumb-item.text-blue-600 {
  color: #2563eb !important;
} 

/* --- UX ENHANCEMENTS --- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #2563eb;
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  font-weight: 600;
  transition: top 0.3s;
}
.skip-link:focus {
  top: 6px;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}
.slide-in-left {
  opacity: 0;
  transform: translateX(-30px);
  animation: slideInLeft 0.8s ease-out forwards;
}
@keyframes slideInLeft {
  to { opacity: 1; transform: translateX(0); }
}
.slide-in-right {
  opacity: 0;
  transform: translateX(30px);
  animation: slideInRight 0.8s ease-out forwards;
}
@keyframes slideInRight {
  to { opacity: 1; transform: translateX(0); }
}
.floating {
  animation: floating 3s ease-in-out infinite;
}
@keyframes floating {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite alternate;
}
@keyframes pulseGlow {
  from { box-shadow: 0 0 0 0 #2563eb44; }
  to { box-shadow: 0 0 16px 8px #2563eb33; }
}
.hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}
button, .btn-primary, .header-link, a, input[type="submit"] {
  min-width: 44px;
  min-height: 44px;
  font-size: 1rem;
  box-sizing: border-box;
}
button:focus, .btn-primary:focus, .header-link:focus, a:focus, input[type="submit"]:focus {
  outline: 2px solid #174ea6;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(33, 125, 187, 0.25);
  background: #eaf6ff;
  color: #174ea6 !important;
  z-index: 2;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hover-lift:hover, .floating, .pulse-glow { animation: none !important; transform: none !important; }
}
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30,41,59,0.18);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  transition: opacity 0.3s;
}
.loading-overlay .spinner {
  border: 4px solid #e5e7eb;
  border-top: 4px solid #2563eb;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
} 