/* Reset */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;              /* width of vertical scrollbar */
  height: 10px;             /* height of horizontal scrollbar */
}

::-webkit-scrollbar-track {
  background: #f1f1f1;      /* light background track */
}

::-webkit-scrollbar-thumb {
  background-color: #01354d;   /* dark blue */
  border-radius: 10px;
  border: 2px solid #f1f1f1;   /* adds space around thumb */
}

::-webkit-scrollbar-thumb:hover {
  background-color: #ffc107;   /* golden yellow on hover */
}


html, body {
    width: 100%;
    height: 100%;
    /* overflow-x: hidden; */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

nav {
  background-color: #01354d;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Poppins:wght@400;600&display=swap');




/* Content */
main {
    flex: 1;
    padding: 40px;
}

/* HERO SLIDER */
.landing-hero-slider {
    position: relative;
    width: 100%;
    height: calc(100vh - 88px); /* full height minus navbar */
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 10px;
}

/* Slides */
.landing-hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 0;
}

.landing-hero-slider .slide.active {
    opacity: 1;
}

/* Dark Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

/* Hero Text */
.hero-text {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 20px;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: bold;
}

.hero-text h1 span {
    color: #ffc107;
}

.hero-text p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: auto;
}

.hero-text .btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: #ffc107;
    color: #01354d;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.hero-text .btn:hover {
    background: #01354d;
    color: #ffc107;
}

/* Generic Sections */
.landing-section {
    padding: 60px 10px;
    max-width: 1100px;
    margin: auto;
}

.landing-section h2 {
    color: #01354d;
    font-size: 2rem;
    margin-bottom: 15px;
}

.landing-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.landing-fade {
    display: block;
    margin-top: 15px;
    font-style: italic;
    color: #666;
}

/* Buttons */
.landing-btn {
    display: inline-block;
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 10px 20px;
    background: #ffc107;
    color: #01354d;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.landing-btn:hover {
    background-color: #01354d;
    color: #ffc107;
}



/* industries.css */

#industries {
  background-color: #ffffff;
  padding: 60px 0;
}

#industries .container {
  max-width: 1100px;
  margin: auto;
  text-align: center;
  padding: 0 20px;
}

#industries h2 {
  color: #01354d;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

#industries p {
  color: #333333;
  font-size: 1.1rem;
  margin-bottom: 40px;
}

/* Card Grid Layout */
.industry-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  justify-items: center;
}

/* Individual Card Styling */
.industry-card {
  width: 100%;        
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 auto 1.5rem; 
  background-color: rgba(var(--base-color), 0.5);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.industry-card h3 {
  color: #01354d;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.industry-card p {
  color: #555555;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Hover Effect */
.industry-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
  border-top: 6px solid rgba(var(--base-color), 0.5);
}

/* Responsive Padding */
@media (max-width: 768px) {

  .industry-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* raised from 250 */
    gap: 25px;
    justify-items: center;   /* centers each card */
    justify-content: center; /* centers the whole grid */
    width: 100%;
    max-width: 600px;        /* <--- ensures grid visually aligns to center */
    margin: 0 auto;          /* centers entire block under heading */
  }

  .industry-card {
      width: 100%;
      max-width: 100%;
  }

  #industries {
    padding: 40px 15px;
  }

  #industries h2 {
    font-size: 1.6rem;
  }

  #industries p {
    font-size: 1rem;
  }
}

/* Card Grid Layout */
.tech-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

/* Individual Tech Card */
.tech-card {
  background-color: rgba(var(--base-color), 0.4);
  border-radius: 12px;
  padding: 25px 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tech-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
  border-top: 6px solid rgba(var(--base-color), 0.5);
  /* background-color: #ffffff; */
}

/* Logo Styling */
.tech-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
  border-radius: 25%;
  overflow: hidden;
}

/* Headings & Descriptions */
.tech-card h3 {
  color: #003049;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.tech-desc {
  color: #555555;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
  #technologies {
    padding: 40px 15px;
  }

  #technologies h2 {
    font-size: 1.6rem;
  }

  .tech-logo {
    width: 65px;
    height: 65px;
  }

  .tech-desc {
    font-size: 0.9rem;
  }
}



/* ====================================================================================== */



/* ==== Section Wrapper ==== */
.landing-section.services-flip {
  text-align: center;
  padding: 2rem 1rem;
  /* background: #f9f9f9; */
}

.landing-section.services-flip h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #222;
}

/* ==== Grid Layout for Cards ==== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  justify-items: center;
  perspective: 1200px;
}

/* ==== Each Card Container ==== */
.service-card {
  width: 100%;
  max-width: 100%;
  height: 330px;
  box-sizing: border-box;
  margin: 0 auto 1.5rem;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

/* Flip effect on hover */
.service-card:hover .card-inner {
  transform: rotateY(180deg);
}

/* ==== Card Faces ==== */
.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  box-sizing: border-box;
}

/* Front Face */
.card-front {
  background-color: rgba(var(--base-color), 0.6);
  border: 1px solid #e0e0e0;
}

.card-front h3 {
  margin-top: 0.5rem;
  font-size: 1.1rem;
  color: #333;
}

.service-icon {
  font-size: 2rem;
}

/* Back Face */
.card-back {
  background-color: rgba(var(--base-color), 0.3);
  color: #fff;
  transform: rotateY(180deg);
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* ==== Paragraph Description Under Grid ==== */
.services-intro {
  max-width: 900px;
  margin: 2rem auto 1rem auto;
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
}

.landing-fade {
  opacity: 0.8;
  display: block;
  margin-top: 0.5rem;
}

/* ==== Responsive Design ==== */
@media (max-width: 768px) {
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* raised from 250 */
    gap: 25px;
    justify-items: center;   /* centers each card */
    justify-content: center; /* centers the whole grid */
    width: 100%;
    max-width: 600px;        /* <--- ensures grid visually aligns to center */
    margin: 0 auto;          /* centers entire block under heading */
  }

  .service-card {
    width: 100%;
    max-width: 100%;
  }

  .services-intro {
    padding: 0 1rem;
  }
}


.map-wrap {
  width: 100%;
  height: auto;
  max-width: none;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}

.map-wrap svg { 
  width: auto; 
  height: auto; 
  display:block; 
}

svg { 
  /* max-height: 80vh; */
  /* display:block;  */
  /* margin: 0 auto; */
  position: relative; 
  z-index: 1; 
}

/* Base state color */
svg path {
  fill: #01354d;
  transition: fill .25s ease, transform .2s ease, filter .2s ease;
  transform-origin: center center;
}

/* permanent highlighted states (always highlighted) */
.permanent-highlight {
  fill: #ffc107 !important;
  stroke: #111;
  stroke-width: .9;
}

/* hover 3D effect (applies on top of permanent highlight) */
svg path:hover {
  transform: translateY(-6px) scale(1.02);
  filter: drop-shadow(0 14px 22px rgba(0,0,0,0.25));
  cursor: pointer;
}

/* Highlight while card visible (temporary) */
.active-state {
  fill: #ffc107 !important;
  stroke: #000;
  stroke-width: 1.2;
  transform: translateY(-6px) scale(1.02);
  filter: drop-shadow(0 14px 28px rgba(0,0,0,0.28));
}

/* Floating info card */
#office-card {
  position: fixed;
  top: 100px;
  left: 100px;
  background: #ffffff;
  padding: 18px 22px;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    left 0.25s ease,
    top 0.25s ease,
    transform 0.25s ease;
  z-index: 9999;
  transform: translateY(10px);
  border-left: 5px solid #ffc107;     /* accent in your yellow */
  max-width: min(90vw, 560px);
}

#office-card.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#office-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: #01354d;                      /* your navbar blue */
}

#office-card p {
  margin: 0;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
}

#office-card .office-lead {
  font-weight: 600;
  color: #01354d;
  background: rgba(255, 193, 7, 0.18); /* soft yellow background */
  padding: 2px 6px;
  border-radius: 999px;                /* pill shape */
  white-space: nowrap;
}