/* Custom Properties*/
:root {
    /* Colors */
    --primary-color: #800020;
    --primary-child-color:#800020;
    --secondary-color: #ffffff;
    --accent-color: #FFD700;
    --dark-color: #000000;
    --light-color: #ffffff;
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
     /* Gold accent */
  --text-dark: #343a40;
  --text-light: #6c757d;
  --white: #ffffff;
  --transition-slow: 0.5s;
  --transition-medium: 0.3s;
  --transition-fast: 0.2s;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.15);
    


    /* Text Colors */
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-muted: #6c757d;
    --text-light: rgba(255, 255, 255, 0.9);
    
    /* Typography */
    --font-main: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Lora', Georgia, serif;
    --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    
    /* Font Sizes - Fluid Typography */
    --fs-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --fs-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --fs-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --fs-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
    --fs-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --fs-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
    --fs-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 3rem);
    --fs-4xl: clamp(2.25rem, 1.8rem + 2.25vw, 4rem);
    
    /* Spacing - Consistent Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Layout */
    --container-max-width: 1200px;
    --container-padding: clamp(1rem, 5vw, 2rem);
    --navbar-height: 70px;
    --navbar-height-mobile: 60px;
    
    /* Transitions & Animations */
    --transition-fast: 0.15s ease;
    --transition-default: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 15px 35px rgba(0, 0, 0, 0.15);
    --shadow-colored: 0 8px 25px rgba(0, 34, 68, 0.2);
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-child-color) 0%, #003366 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, #aa0030 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, #ffed4a 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.5) 80%);
    
    /* Z-index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

    /* Reset and Base Styles */
    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }
    
    html {
        scroll-behavior: smooth;
        scroll-padding-top: var(--navbar-height);
    }

body {
    font-family: var(--font-main);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--light-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--primary-color);
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-base); }

p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }




/* Page Header */
.page-header {
  background: linear-gradient(rgba(0, 0, 0, 0.5)50%, rgba(0, 0, 0, 0.5)50%), url('../images/Engineer4.jpg');
  background-size: cover;
  background-attachment: fixed;
  height: 420px;
  width: 1500px;
  background-position: center;
  color: var(--white);
  padding: 150px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(to top right, var(--white) 49%, transparent 51%);
}

.page-header h1 {
  font-size: 3.5rem;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards 0.3s;
}

.breadcrumb {
  background: transparent;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards 0.6s;
}

.breadcrumb-item a {
  color: var(--white);
  text-decoration: none;
  position: relative;
}

.breadcrumb-item a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--white);
  transition: width var(--transition-medium) ease;
}

.breadcrumb-item a:hover::after {
  width: 100%;
}

/* Section Styles */
.section-heading {
  margin-bottom: 2rem;
  position: relative;
}

.section-heading h6 {
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 10px;
  display: inline-block;
  position: relative;
}

.section-heading h6::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
  bottom: -5px;
  left: 0;
  transition: width var(--transition-medium) ease;
}

.section-heading:hover h6::after {
  width: 70px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

/* Mission Section */
.mission-section {
  position: relative;
  overflow: hidden;
}

.mission-section .lead {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.mission-section .position-relative {
  overflow: hidden;
  border-radius: 8px;
}

.mission-section img {
  transition: transform 1s ease;
}

.mission-section .position-relative:hover img {
  transform: scale(1.05);
}

.quote-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(128, 0, 32, 0.9), rgba(128, 0, 32, 0.7), transparent);
  padding: 30px;
  color: var(--white);
  transform: translateY(100%);
  transition: all var(--transition-slow) ease;
}

.mission-section .position-relative:hover .quote-overlay {
  transform: translateY(0);
}

/* Values Section */
.values-section {
  background-color: var(--secondary-color);
  position: relative;
}

.values-section::before,
.values-section::after {
  content: '';
  position: absolute;
  height: 60px;
  width: 100%;
  left: 0;
  background-size: 20px 20px;
  background-color: var(--secondary-color);
}

.value-card {
  transition: all var(--transition-medium) ease;
  border-radius: 10px;
  overflow: hidden;
  border-bottom: 3px solid transparent;
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
  border-bottom: 3px solid var(--primary-color);
}

.value-icon {
  position: relative;
  display: inline-block;
}

.value-icon::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-radius: 50%;
  background-color: rgba(128, 0, 32, 0.1);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all var(--transition-medium) ease;
  z-index: -1;
}

.value-card:hover .value-icon::after {
  width: 70px;
  height: 70px;
}

.value-card h3 {
  font-weight: 600;
  transition: all var(--transition-medium) ease;
}

.value-card:hover h3 {
  color: var(--primary-color);
}

/* Story Section */
.story-section {
  position: relative;
}

.story-section img {
  transition: all var(--transition-slow) ease;
  box-shadow: var(--box-shadow);
}

.story-section img:hover {
  transform: rotate(2deg) scale(1.02);
  box-shadow: var(--box-shadow-hover);
}

/* Team Section */
.team-section {
  background-color: var(--secondary-color);
}

.team-photo-container {
  position: relative;
  overflow: hidden;
  border-radius: 10px
  
}
/* Full width team photo styling */
.team-photo-fullwidth {
  width: 100vw;
  max-width: 100vw;
  min-width: 100vw;
  height: 220px;
  max-height: 220px;
  object-fit: cover;
  display: block;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  border-radius: 0 !important;
  box-shadow: 0 4px 18px 0 rgba(0,0,0,0.10);
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .team-photo-fullwidth {
    height: 140px;
    max-height: 140px;
  }
}

.team-photo-container {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-bottom: 0.5rem;
}

.team-photo-caption {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  background: rgba(128,0,32,0.92);
  padding: 10px 28px 8px 28px;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  min-width: 220px;
  max-width: 90vw;
  text-align: center;
}

.team-photo {
  transition: transform var(--transition-slow) ease;
}

.team-photo-container:hover .team-photo {
  transform: scale(1.05);
}

.team-photo-caption {
  position: absolute;
  bottom: 20px;
  right: -20px;
  transition: all var(--transition-medium) ease;
}

.team-photo-container:hover .team-photo-caption {
  right: 20px;
}

/* Accreditation Section */
.accreditation-section {
  position: relative;
}

.accreditation-item {
  transition: all var(--transition-medium) ease;
  background-color: var(--white);
}

.accreditation-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
  border-color: var(--primary-color) !important;
}

/* Call to Action */
.cta {
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  top: -100px;
  right: -50px;
}

.cta::after {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  bottom: -50px;
  left: -50px;
}

.cta .btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all var(--transition-medium) ease;
}

.cta .btn::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: all 0.6s ease;
  z-index: -1;
}

.cta .btn:hover::before {
  left: 100%;
}

.cta .btn-light:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.cta .btn-outline-light:hover {
  background-color: var(--white);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}



/* Animation Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 991.98px) {
  .section-title {
    font-size: 2rem;
  }

  .page-header h1 {
    font-size: 2.5rem;
  }

  .order-lg-1 {
    margin-top: 2rem;
  }
}

@media (max-width: 767.98px) {
  .page-header {
    padding: 120px 0 60px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .mission-section .lead {
    font-size: 1.1rem;
  }
}

/* Loader Animation */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader {
  width: 80px;
  height: 80px;
  position: relative;
}

.loader:before,
.loader:after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 5px solid transparent;
  border-top-color: var(--primary-color);
}

.loader:before {
  width: 100%;
  height: 100%;
  animation: spin 1.5s infinite ease;
}

.loader:after {
  width: 80%;
  height: 80%;
  top: 10%;
  left: 10%;
  border-top-color: var(--accent-color);
  animation: spin 2s infinite ease;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loader-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Modern Loader Animation */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loader-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
}

.modern-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--primary-color);
  opacity: 0;
}

.dot1 {
  animation: fadePulse 1.5s infinite ease-in-out 0s;
}

.dot2 {
  animation: fadePulse 1.5s infinite ease-in-out 0.3s;
}

.dot3 {
  animation: fadePulse 1.5s infinite ease-in-out 0.6s;
}

@keyframes fadePulse {

  0%,
  100% {
    opacity: 0;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Loader */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--z-modal);
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loader-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.modern-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0;
}

.dot1 { animation: fadePulse 1.5s infinite ease-in-out 0s; }
.dot2 { animation: fadePulse 1.5s infinite ease-in-out 0.3s; }
.dot3 { animation: fadePulse 1.5s infinite ease-in-out 0.6s; }

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    margin-right: var(--space-md);
    transition: all var(--transition-bounce);
    color: var(--accent-color);
    position: relative;
    overflow: hidden;
}

.social-icons a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-color);
    border-radius: var(--radius-full);
    transform: scale(0);
    transition: transform var(--transition-bounce);
    z-index: -1;
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.1);
}

.social-icons a:hover::before {
    transform: scale(1);
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    box-shadow: var(--shadow-md);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-default);
    z-index: var(--z-fixed);
}

.back-to-top-btn:hover {
    transform: translateY(-3px);
    background-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn.show:hover {
    animation: pulse 1.5s infinite;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: subpixel-antialiased;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Accessibility */
*:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

@media (prefers-contrast: high) {
    :root {
        --text-primary: #000000;
        --text-secondary: #333333;
        --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
}