/* Responsive Navbar & Logo */
@media (max-width: 991.98px) {
  .navbar-brand img {
    width: 180px !important;
    height: 60px !important;
    padding: 2px !important;
  }
  .navbar .navbar-nav {
    background: #1F2E3D;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 16px rgba(31,46,61,0.16);
    margin-top: 8px;
    padding: 12px 0;
  }
  .navbar .nav-link {
    padding: 12px 24px;
    font-size: 1.1rem;
    text-align: left;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand img {
    width: 120px !important;
    height: 40px !important;
  }
  .navbar .nav-link {
    padding: 10px 16px;
    font-size: 1rem;
  }
}
/* =======================================
   NAVBAR WHITE STYLING
======================================= */
.sticky-header, .navbar, .navbar.bg-dark, .navbar-dark {
  background: linear-gradient(90deg, #fff 0%, #fff 50%, #1F2E3D 70%, #1F2E3D 100%) !important;
  box-shadow: 0 2px 8px rgba(31,46,61,0.08);
}
.navbar .navbar-brand {
  background: transparent;
  padding-left: 0;
  padding-right: 0;
  border-radius: 0;
  z-index: 2;
  position: relative;
}
.navbar .navbar-brand img {
  filter: none !important;
}
.navbar .nav-link {
  color: #fff !important;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(26,35,126,0.18);
  transition: color 0.2s;
}
.navbar .nav-link.active, .navbar .nav-link:focus, .navbar .nav-link:hover {
  color: #ffeb3b !important; /* yellow accent */
  text-decoration: underline;
}

.navbar-toggler {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.55) !important;
  border-radius: 14px;
  box-shadow: none;
  padding: 0.55rem 0.7rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.2);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.92%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.4' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  height: 1.4em;
  width: 1.4em;
}

body {
  background: var(--bg-color);
}
/* =======================================
   VARIABLES
======================================= */
:root {
  --primary-color: #1F2E3D; /* brand slate */
  --secondary-color: #1976d2; /* classic blue */
  --accent-color: #00bcd4; /* light blue accent */
  --text-color: #23272f;
  --bg-color: #fff;
  --hero-bg: #f4f7fb;
  --font-base: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-weight-bold: 700;
  --line-height: 1.7;
  --padding-lg: 90px;
  --padding-md: 60px;
  --padding-sm: 24px;
  --border-radius: 0.7rem;
  --shadow: 0 4px 24px rgba(26, 35, 126, 0.10);
  --transition: 0.18s cubic-bezier(.4,0,.2,1);
}

/* =======================================
   GLOBAL RESET / BASE STYLES
======================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* =======================================
   HEADER / NAVIGATION
======================================= */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

body {
  font-family: var(--font-base);
  color: var(--text-color);
  line-height: var(--line-height);
  background-color: var(--bg-color);
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  padding-top: 0;
}

h1, h2, h3, h4, h5 {
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.01em;
  margin-bottom: 0.7em;
}


a {
  text-decoration: none;
  color: var(--secondary-color);
  transition: color var(--transition);
}

a:hover, a:focus {
  color: var(--accent-color);
  text-decoration: underline;
}

.btn,
.btn-primary,
.btn-secondary,
.btn-light,
.btn-outline-light,
.btn-outline-primary,
.btn-outline-secondary,
button.btn {
  background-color: #1F2E3D !important;
  border-color: #1F2E3D !important;
  color: #fff !important;
}

.btn:hover,
.btn:focus,
.btn-primary:hover,
.btn-primary:focus,
.btn-secondary:hover,
.btn-secondary:focus,
.btn-light:hover,
.btn-light:focus,
.btn-outline-light:hover,
.btn-outline-light:focus,
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
button.btn:hover,
button.btn:focus {
  background-color: #16222d !important;
  border-color: #16222d !important;
  color: #fff !important;
}

/* =======================================
   HERO SECTION
======================================= */

#hero.hero-modern-bg {
  position: relative;
  min-height: 60vh;
  padding: var(--padding-lg) var(--padding-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('../images/hero_bg.jpg') center/cover no-repeat;
  filter: none;
  z-index: 1;
}

.hero-bg-gradient {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 3;
}

#hero h1 {
  font-size: 3.2rem;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  
}

#hero p {
  font-size: 1.3rem;
  color: var(--secondary-color);
  background-color: #f6f6fa;
  margin: 1.3rem;

}

#hero .btn {
  font-size: 1.15rem;
  padding: 0.85rem 2.1rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  box-shadow: var(--shadow);
  background: #1F2E3D;
  color: #fff;
  border: none;
  transition: box-shadow var(--transition), background var(--transition);
}

#hero .btn:hover, #hero .btn:focus {
  background: #16222d;
  box-shadow: 0 8px 32px rgba(44, 62, 80, 0.13);
}


/* =======================================
   SERVICES preview SECTION
======================================= */

#services-preview {
  padding: var(--padding-lg) 0;
}

#services-preview .card {
  border-radius: var(--border-radius);
}


/* Preview Gallery */
.service-preview-gallery {
  display: grid;
  gap: 12px;
}

.service-preview-main img {
  display: none;
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
}

.service-preview-main img.is-active {
  display: block;
}

.service-preview-thumbs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.service-preview-thumbs img {
  width: 60px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.6;
  transition: 0.3s;
}

.service-preview-thumbs img.is-active,
.service-preview-thumbs img:hover {
  opacity: 1;
}



/*service page gallery */

.misc-gallery {
  text-align: center;
  margin-top: 60px;
  
}

.misc-gallery .slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  justify-items: center;
}

.misc-gallery .slider img {
  width: 100%;
  max-width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

/* Layout for misc gallery thumbnails: show 5 items in one row on large screens */
.misc-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  justify-items: center;
}

.misc-gallery-grid .thumb-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
}

@media (min-width: 768px) {
  .misc-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .misc-gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .misc-gallery-grid .thumb-item img {
    height: 120px;
  }
}






/* =======================================
   CTA SECTION
======================================= */
.cta-section {
  margin-top: 60px;
  text-align: center;
  background-color: #1F2E3D;
  color: var(--bg-color);
  padding: var(--padding-md) var(--padding-sm);
  border-radius: 8px;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.cta-section .cta-button {
  display: inline-block;
  background-color: #1F2E3D;
  color: #fff;
  padding: 12px 25px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: bold;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: 0.3s;
}

.cta-section .cta-button:hover {
  background-color: #16222d;
  color: #fff;
}

/* =======================================
   FOOTER
======================================= */
footer {
  background-color: #222;
  color: var(--bg-color);
  padding: 40px var(--padding-sm);
  text-align: center;
}

footer a {
  color: var(--bg-color);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 24px;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, opacity 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top::before {
  content: '↑';
  font-weight: bold;
}

.back-to-top.show {
  display: flex;
}

.back-to-top:hover {
  background-color: var(--secondary-color);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* =======================================
   RESPONSIVE
======================================= */
@media (max-width: 992px) {
  .service-item, .service-item.reverse {
    flex-direction: column;
  }

  .main-slide img {
    height: 250px;
  }

  .thumbs img {
    width: 50px;
    height: 35px;
  }
}

@media (max-width: 768px) {
  #hero h1 {
    font-size: 2rem;
  }

  #services h2,
  .cta-section h2 {
    font-size: 2rem;
  }

  #hero p,
  .cta-section p {
    font-size: 1rem;
  }
}







/* =======================================
   SERVICES PAGE
======================================= */
#services {
  padding: var(--padding-lg) var(--padding-sm);
  background-color: var(--hero-bg);
}

.service-item {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 44px;
  align-items: center;
  gap: 36px;
  background: linear-gradient(180deg, #fff, #f6f6fa);
  border-radius: 1.1rem;
  padding: 32px 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  border-left: 7px solid var(--primary-color, #7c3aed);

}

.service-item.reverse {
  flex-direction: row-reverse;
  border-left: none;
  border-right: 6px solid var(--primary-color, #0d6efd);
}

.service-content {
  flex: 1;
  padding: 6px 12px;
}

.service-content h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.service-content p {
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.service-content ul {
  padding-left: 20px;
}

.service-content li {
  margin-bottom: 8px;
}

/* hover effect to lift the card slightly */
.service-item:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 18px 38px rgba(44, 62, 80, 0.13);
}

/* make sure stacked layout remains compact on small screens */
@media (max-width: 767px) {
  .service-item {
    padding: 16px;
    margin-bottom: 24px;
  }
}

/* Gallery */
.service-gallery {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}



.service-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(44,62,80,0.07);
}

.main-slide img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 16px;
  display: none;
  box-shadow: 0 2px 16px rgba(44,62,80,0.09);
}

.main-slide img.active {
  display: block;
}

.thumbs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.thumbs img {
  width: 64px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.7;
  transition: 0.3s;
  box-shadow: 0 1px 4px rgba(44,62,80,0.08);
}

.thumbs img:hover,
.thumbs img.active-thumb {
  opacity: 1;
  border: 2px solid var(--accent-color);
  box-shadow: 0 2px 8px rgba(44,62,80,0.13);
}

/* Project detail page container for consistent width */
.project-detail {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: 1.1rem;
  box-shadow: var(--shadow);
  padding: 40px 32px 32px 32px;
  margin-top: 40px;
  margin-bottom: 40px;
}

@media (max-width: 991px) {
  .project-detail {
    padding: 24px 10px;
    margin-top: 24px;
    margin-bottom: 24px;
  }
}

/* Overlay layout for project detail and gallery */
.project-overlay-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 60px;
}

.project-detail-overlay {
  position: relative;
  z-index: 2;
  background: #fff;
  box-shadow: 0 8px 32px rgba(44,62,80,0.13);
  border-radius: 1.1rem;
  padding: 40px 32px 32px 32px;
  margin-bottom: -60px;
  margin-top: 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.project-gallery-underlay {
  position: relative;
  z-index: 1;
  background: #f4f7fb;
  border-radius: 1.1rem;
  padding: 80px 32px 32px 32px;
  margin-top: 0;
  box-shadow: 0 2px 16px rgba(44,62,80,0.07);
}

.project-gallery-underlay h2 {
  margin-top: 0;
  margin-bottom: 24px;
  text-align: center;
}

.project-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  justify-items: center;
  align-items: start;
}

.project-images img {
  width: 100%;
  max-width: 260px;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(44,62,80,0.09);
  background: #fff;
}

@media (max-width: 991px) {
  .project-images {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .project-images {
    grid-template-columns: 1fr;
  }
}

/* =======================================
   ABOUT PAGE
======================================= */
.about-page {
  background:
    radial-gradient(circle at top right, rgba(31, 46, 61, 0.08), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #eef3f7 100%);
}

.about-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f4f7fb 58%, rgba(31, 46, 61, 0.08) 100%);
  border: 1px solid rgba(31, 46, 61, 0.08);
  border-radius: 24px;
  box-shadow: 0 20px 48px rgba(31, 46, 61, 0.08);
  padding: 48px 40px;
}

.about-hero-content {
  max-width: 860px;
  margin: 0 auto;
}

.about-panel-label,
.leader-role {
  color: #1F2E3D;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-page-title {
  color: #14202b;
  font-size: clamp(2.4rem, 4vw, 4rem);
  margin-bottom: 12px;
  text-align: center;
}

.about-page-subtitle {
  color: #1F2E3D;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  margin-bottom: 20px;
}

.about-page-intro,
.about-panel-copy,
.leader-bio {
  color: #4f6173;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-panel,
.leader-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(31, 46, 61, 0.08);
  border-radius: 22px;
  box-shadow: 0 16px 36px rgba(31, 46, 61, 0.08);
  padding: 32px;
}

.about-panel-title,
.leader-name {
  color: #14202b;
  font-size: 1.45rem;
  margin-bottom: 18px;
}

.about-capability-card,
.about-highlight-item {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(31, 46, 61, 0.08);
  border-radius: 20px;
  box-shadow: 0 14px 30px rgba(31, 46, 61, 0.07);
}

.about-capability-card {
  min-height: 100%;
  padding: 28px;
}

.about-capability-icon {
  background: linear-gradient(135deg, #1F2E3D 0%, #30485d 100%);
  border-radius: 999px;
  height: 14px;
  margin-bottom: 18px;
  width: 56px;
}

.about-capability-copy,
.about-highlight-item p {
  color: #35506a;
  font-size: 1.03rem;
  line-height: 1.75;
}

.about-highlight-panel {
  background: linear-gradient(135deg, #1F2E3D 0%, #263a4c 100%);
  border-radius: 24px;
  box-shadow: 0 22px 48px rgba(31, 46, 61, 0.18);
  color: #fff;
  padding: 36px;
}

.about-highlight-panel .about-panel-label,
.about-highlight-panel h2 {
  color: #fff;
}

.about-highlight-item {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  padding: 22px 24px;
}

.about-highlight-item p {
  color: rgba(255, 255, 255, 0.9);
}

.about-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.about-list li {
  border-top: 1px solid rgba(31, 46, 61, 0.08);
  color: #35506a;
  padding: 14px 0 14px 24px;
  position: relative;
}

.about-list li:first-child {
  border-top: none;
  padding-top: 0;
}

.about-list li:first-child::before {
  top: 5px;
}

.about-list li::before {
  background: #1F2E3D;
  border-radius: 50%;
  content: '';
  height: 8px;
  left: 0;
  position: absolute;
  top: 19px;
  width: 8px;
}

.about-section-heading h2 {
  color: #14202b;
}

.leader-card {
  text-align: left;
}

.leader-card-top {
  align-items: center;
  display: flex;
  gap: 22px;
  margin-bottom: 24px;
}

.leader-card-intro {
  flex: 1;
}

.leader-avatar {
  border: 4px solid rgba(31, 46, 61, 0.12);
  border-radius: 22px;
  box-shadow: 0 12px 24px rgba(31, 46, 61, 0.12);
  display: block;
  flex-shrink: 0;
  height: 132px;
  object-fit: cover;
  width: 132px;
}

.leader-credentials {
  color: #1F2E3D;
  font-weight: 600;
}

.leader-expertise-block {
  border-top: 1px solid rgba(31, 46, 61, 0.08);
  margin-top: 20px;
  padding-top: 20px;
}

.leader-expertise {
  margin-top: 0;
}

@media (max-width: 991px) {
  .about-hero {
    padding: 36px 24px;
  }

  .about-highlight-panel {
    padding: 28px 24px;
  }
}

@media (max-width: 767px) {
  .about-panel,
  .leader-card {
    padding: 24px;
  }

  .leader-card-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .leader-avatar {
    height: 96px;
    width: 96px;
  }
}
