/* Navbar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 10px 0;
  z-index: 1000;
  transition: all 0.4s ease;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.85);
  mix-blend-mode: normal;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  padding: 10px 0;
}

.nav-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 2%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #ffffff;
  transition: color 0.4s ease;
}

nav.scrolled .logo-text {
  color: var(--text-dark);
}

.nav-logo-img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  background: #000000;
  border-radius: 50%;
  margin-left: 10px;
  padding: 2px; /* Slight padding to keep logo off the very edge */
  transition: transform 0.4s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

nav.scrolled .nav-logo-img {
  /* No filter needed since it's inside a black circle badge */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
  color: #FFFFFF;
}

nav.scrolled .nav-links a {
  color: var(--accent);
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a.active,
nav.scrolled .nav-links a:hover,
nav.scrolled .nav-links a.active {
  color: var(--primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Lightened overlay so video is visible but text is still readable */
  background: linear-gradient(to bottom, rgba(11, 15, 25, 0.1), rgba(11, 15, 25, 0.7));
  z-index: -1;
}

.hero-bg-anim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  opacity: 0.1; /* Reduced grid opacity so it doesn't block the video */
}

.hero-content {
  text-align: center;
  z-index: 1;
  max-width: 800px;
}

.hero-title {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  color: #FFFFFF;
}

.hero-title-sub {
  color: transparent;
  -webkit-text-stroke: 1px #FFFFFF;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(30px);
  color: #E2E8F0;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  opacity: 0;
  transform: translateY(30px);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
}

.mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--secondary);
  border-radius: 20px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 1.5s infinite;
}

@keyframes scroll {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* Split Layout Utilities */
.split-layout {
  display: flex;
  gap: 50px;
  align-items: center;
}

.split-layout > div {
  flex: 1;
}

.split-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* About */
.about-blocks {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.vision-block, .mission-block {
  padding: 30px;
  border-left: 4px solid var(--primary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vision-block:hover, .mission-block:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(0, 119, 255, 0.15);
}

.vision-block h3, .mission-block h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.vision-block p {
  font-size: 1.1rem;
  line-height: 1.7;
}

.mission-block ul {
  list-style: none;
  padding-left: 0;
}

.mission-block ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  font-size: 1rem;
  line-height: 1.5;
}

.mission-block ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: bold;
}

.split-image img {
  width: 100%;
  max-width: 350px;
  max-height: 280px;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 0.5s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.about .stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.stat-item {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-num {
  font-size: 3rem;
  font-family: var(--font-heading);
  color: var(--primary);
  font-weight: 700;
  text-shadow: var(--blue-glow);
}

/* Services & Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 400px)); /* Added max width limit */
  justify-content: center; /* Center items */
  gap: 30px;
}

.service-card {
  padding: 40px 30px;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 119, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  border-color: rgba(0, 119, 255, 0.3);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--accent);
}

.service-card p {
  color: var(--secondary);
}

/* Engineering Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.process-step {
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease;
  display: flex;
  flex-direction: column;
}

.process-step:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
}

.process-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--glass-border);
  transition: transform 0.5s ease;
}

.process-step:hover .process-img {
  transform: scale(1.05);
}


.process-content {
  padding: 30px;
  flex: 1;
}

.process-content h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--primary);
  position: relative;
  z-index: 2;
}

.process-content p {
  position: relative;
  z-index: 2;
  color: var(--secondary);
  font-size: 1.1rem;
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.portfolio-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.portfolio-item:hover {
  border-color: var(--primary);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 25px 25px;
  background: linear-gradient(to top, rgba(15, 19, 26, 0.95) 0%, rgba(15, 19, 26, 0.5) 70%, transparent 100%);
  transform: translateY(0);
  opacity: 1;
  transition: background 0.4s ease;
}

.portfolio-item:hover .portfolio-caption {
  background: linear-gradient(to top, rgba(15, 19, 26, 1) 0%, rgba(15, 19, 26, 0.7) 70%, transparent 100%);
}

.portfolio-caption h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
  color: #FFFFFF;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.portfolio-caption p {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

/* Leadership */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  text-align: center;
}

.team-photo {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 2px solid var(--glass-border);
  transition: border-color 0.4s ease;
}

.team-member:hover .team-photo {
  border-color: var(--primary);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(80%);
  transition: filter 0.4s ease;
}

.team-member:hover .team-photo img {
  filter: grayscale(0%);
}

.team-member h3 {
  margin-bottom: 5px;
}

.designation {
  color: var(--primary);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.desc {
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.linkedin-btn {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.linkedin-btn:hover {
  color: var(--accent);
  border-bottom-color: var(--primary);
}

/* Video Section */
.video-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
}

.promo-video {
  width: 100%;
  display: block;
  border-radius: 20px;
}

.video-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 80%;
  background: var(--primary);
  filter: blur(150px);
  transform: translate(-50%, -50%);
  opacity: 0.2;
  z-index: -1;
}

/* Clients */
.clients-track {
  display: flex;
  gap: 100px;
  width: max-content;
  animation: scroll-clients 30s linear infinite;
}

.client-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary);
  opacity: 0.5;
  transition: all 0.3s ease;
}

.client-logo:hover {
  color: var(--primary);
  opacity: 1;
}

@keyframes scroll-clients {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 50px)); }
}

/* Testimonials */
.testimonial-slider {
  display: flex;
  gap: 30px;
  overflow-x: auto;
    overflow-y: hidden;
  padding-bottom: 40px;
}

.testimonial-slider::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  min-width: 400px;
  padding: 40px;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.testimonial-card p {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 20px;
}

/* Careers */
.careers-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.career-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 40px;
  border-radius: 12px;
  background: var(--bg-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-left: 4px solid transparent;
}

.career-card:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(0, 119, 255, 0.1);
  border-left-color: var(--primary);
}

.career-info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--accent);
}

.career-info p {
  color: var(--secondary);
  font-weight: 500;
}

/* Contact */
.contact-info {
  position: relative;
  z-index: 1;
}

.contact-info p {
  margin-bottom: 15px;
}

.contact-details {
  margin: 30px 0;
  padding-left: 20px;
  border-left: 2px solid var(--primary);
}

.social-links {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.map-container {
  height: 200px;
  border-radius: 12px;
}

.contact-form {
  padding: 40px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.contact-form:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--accent);
  font-family: var(--font-body);
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: var(--blue-glow);
}

#contact.section-padding {
  padding-bottom: 40px;
}

/* Footer */
.footer {
  background: var(--bg-light);
  padding: 40px 0 20px;
  border-top: 1px solid var(--glass-border);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.glowing-logo {
  font-size: 2.5rem;
  letter-spacing: 3px;
  margin-bottom: 10px;
  text-shadow: var(--blue-glow);
}

.footer-links h4 {
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  margin-bottom: 10px;
  color: var(--secondary);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 5%;
}

.back-to-top {
  background: transparent;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-family: var(--font-heading);
}

/* Responsive */
@media (max-width: 992px) {
  .split-layout {
    flex-direction: column;
  }
  .hero-title {
    font-size: 3rem;
  }
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  /* Mobile Menu Styles */
  .logo-text {
    font-size: 1.2rem;
  }
  
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 100;
  }
  .hamburger span {
    width: 100%;
    height: 3px;
    background: #ffffff; /* White by default (for dark backgrounds) */
    transition: all 0.3s linear;
    border-radius: 10px;
    transform-origin: 1px;
  }
  
  nav.scrolled .hamburger span {
    background: var(--accent); /* Dark on scrolled white nav */
  }
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    max-width: 300px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.4s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  }
  .nav-links.active {
    right: 0;
  }
  .nav-links a {
    color: var(--accent) !important;
    font-size: 1.2rem;
    margin: 15px 0;
  }
}

@media (min-width: 993px) {
  .hamburger {
    display: none;
  }
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(15px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.job-modal-content {
  background: var(--bg-dark);
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 20px;
  padding: 40px;
  position: relative;
  transform: translateY(30px);
  transition: transform 0.4s ease;
}

.modal-overlay.active .job-modal-content {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(11, 15, 25, 0.05);
  border: 1px solid rgba(11, 15, 25, 0.1);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  color: var(--secondary);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  z-index: 50;
  backdrop-filter: blur(5px);
}

.close-modal:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: rotate(90deg);
}

.consultation-fab {
  position: absolute;
  bottom: 40px;
  right: 40px;
  background: var(--primary);
  color: #fff;
  padding: 16px 28px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1.05rem;
  font-family: var(--font-body);
  z-index: 10;
  box-shadow: 0 10px 25px rgba(0, 119, 255, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  text-decoration: none;
}

.consultation-fab:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 119, 255, 0.6);
  background: #005bb5;
  color: #fff;
}

.online-indicator {
  width: 12px;
  height: 12px;
  background-color: #00E676;
  border-radius: 50%;
  box-shadow: 0 0 10px #00E676;
  animation: pulse-online 2s infinite;
}

@keyframes pulse-online {
  0% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(0, 230, 118, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

/* Commitment Animations */
.commitment-card {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  cursor: default;
}

.commitment-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 119, 255, 0.15);
}

.commitment-icon {
  display: inline-block;
  transition: transform 0.3s ease;
  animation: float-icon 4s ease-in-out infinite;
}

.commitment-card:hover .commitment-icon {
  animation-play-state: paused;
  transform: scale(1.2) rotate(5deg);
}

@keyframes float-icon {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}


/* Contact Item Text Wrapping Fix */
.contact-item {
  width: 100%;
}
.contact-item > div:not(.icon-circle) {
  flex: 1;
  min-width: 0;
}
.contact-item > div > div {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}
@media (max-width: 768px) {
  .services-grid-layout {
    justify-content: flex-start;
    padding-left: 20px;
    padding-right: 20px;
  }
  .project-drawer {
    padding: 20px;
    width: 100%;
    max-width: 100%;
  }
  .drawer-layout {
    flex-direction: column;
    gap: 20px;
  }
  .drawer-left {
    width: 100%;
  }
  .drawer-right {
    width: 100%;
  }
  .globe-container {
    height: 50vh !important;
  }
  .infographic-wrapper {
    min-height: 400px;
    padding: 20px 0;
  }
  .infographic-container {
    transform: scale(0.65);
    transform-origin: left center;
  }
  .info-center, .info-arc, .info-node {
    left: 130px !important;
  }
  .info-center h3 {
    font-size: 2.2rem !important;
  }
  .info-node-label {
    font-size: 1.7rem !important;
    width: 380px !important;
    padding: 18px 20px 18px 45px !important;
    margin-top: -33px !important;
  }
}

@media (max-width: 480px) {
  .about .stats {
    grid-template-columns: 1fr;
  }
  .consultation-fab {
    padding: 12px 20px;
    font-size: 0.9rem;
    bottom: 20px;
    right: 20px;
  }
}

/* Portfolio Network Modal Visualization */
.network-center-node {
  position: absolute;
  width: 180px;
  height: 180px;
  background-image: url('./realistic-earth.jpg');
  background-size: 115%;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.8rem;
  color: white;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 
    inset 10px 10px 25px rgba(255, 255, 255, 0.5),
    0 15px 35px rgba(0, 0, 0, 0.2),
    0 0 60px rgba(0, 119, 255, 0.5);
  z-index: 10;
  border: 2px solid rgba(255,255,255,0.4);
  overflow: hidden;
  filter: brightness(1.2) contrast(1.15);
}

.network-center-node::after {
  content: '';
  position: absolute;
  width: 180%;
  height: 180%;
  border-radius: 50%;
  border: 2px dashed rgba(0, 119, 255, 0.4);
  animation: rotateNode 30s linear infinite;
  pointer-events: none;
}

@keyframes rotateNode {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.network-branch-node {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 119, 255, 0.3);
  padding: 12px 25px;
  border-radius: 40px;
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 8px 20px rgba(0, 119, 255, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.network-branch-node:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(0, 119, 255, 0.4);
  margin-top: -5px;
}

.network-line {
  position: absolute;
  background: linear-gradient(90deg, var(--primary), transparent);
  height: 2px;
  transform-origin: left center;
  z-index: 1;
  opacity: 0.6;
}

/* Emergency Homepage Fixes */
.nav-logo-img {
  filter: url(#remove-black) brightness(1.2) contrast(1.1);
  transform: scale(1.5);
  margin-right: 15px;
}

.hero {
  background-color: #0b0f19; /* Dark background to make white text visible */
}

#hero-slideshow {
  z-index: 0; /* Bring it in front of the background */
}

.hero-slide {
  opacity: 0;
  transition: opacity 1.5s ease;
}

.hero-slide.active {
  opacity: 0.6; /* Slight transparency to let the dark bg show through for readability */
}

.hero-content {
  z-index: 10;
}

.premium-video-wrapper {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 1000px;
  background: black;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  z-index: 2000;
  display: none;
}

.premium-video-wrapper video {
  width: 100%;
  border-radius: 12px;
}

/* Emergency Fix 2: User Requested Layout */
nav {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1) !important;
}

.logo-text {
  color: var(--accent) !important;
}

.nav-links a {
  color: var(--secondary) !important;
}
.nav-links a:hover {
  color: var(--primary) !important;
}

.hero-slide {
  background-size: cover !important;
  background-position: center !important;
  background-color: transparent !important;
}

.hero-slide.active {
  opacity: 0.5 !important;
}

/* Emergency Fix 3: Proper layout and animations */
.nav-logo-img {
  background: transparent !important;
  border-radius: 0 !important;
  width: 55px !important;
  height: 55px !important;
  margin-right: 5px !important;
  object-fit: contain !important;
  box-shadow: none !important;
  padding: 0 !important;
  filter: none !important;
  transform: none !important;
  image-rendering: high-quality !important;
}

.hero-content img[src="logo_transparent.png"] {
  filter: url(#remove-black) drop-shadow(0 10px 20px rgba(0,0,0,0.8)) brightness(1.35) contrast(1.15) !important;
}

#hero-slideshow {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 0 !important;
  overflow: hidden !important;
}

.hero-slide {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-size: cover !important;
  background-position: center !important;
  background-color: transparent !important;
  opacity: 0;
  transition: opacity 1.5s ease;
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes floatLogo {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* Emergency Fix 4: Button Alignment */
.hero-actions {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Balance the play button so the two main buttons stay perfectly centered */
.hero-actions::before {
  content: '';
  width: 56px;
  display: block;
}

#hero-play-btn {
  margin: 0 !important;
  transition: all 0.3s ease;
}

#hero-play-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   SERVICES PAGE PREMIUM CSS RECOVERY
   ========================================================================== */

/* 1. Category Grid Layout (Horizontal Scroll Carousel) */
.services-grid-layout {
  display: flex;
  flex-wrap: nowrap;
  gap: 30px;
  justify-content: center; /* Center the cards horizontally */
  padding: 20px 10px 40px 10px; /* Padding for scrollbar space */
  overflow-x: auto;
    overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  
  /* Custom modern scrollbar for desktop */
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 119, 255, 0.5) rgba(255, 255, 255, 0.05);
}

.services-grid-layout::-webkit-scrollbar {
  height: 8px;
}

.services-grid-layout::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.services-grid-layout::-webkit-scrollbar-thumb {
  background-color: rgba(0, 119, 255, 0.5);
  border-radius: 10px;
}

.premium-category-card {
  flex: 0 0 280px; /* Reduced width */
  scroll-snap-align: center;
  position: relative;
  background: rgba(255, 255, 255, 0.7); /* More solid white background so text is visible */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  border-left: 1px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  min-height: 320px; /* Reduced height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Stack image and content from top */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* Softer shadow */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.premium-category-card:hover {
  transform: translateY(-15px);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 40px rgba(0, 119, 255, 0.15), 0 10px 20px rgba(0,0,0,0.1);
}

.card-glow {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.8) 0%, transparent 60%); /* White glow */
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 3;
}

.premium-category-card:hover .card-glow {
  opacity: 1;
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 180px; /* Distinct image block at the top */
  overflow: hidden;
  border-bottom: 1px solid rgba(0,0,0,0.05); /* Separator line */
}

.card-image-wrapper > div {
  width: 100%;
  height: 100%;
  position: relative;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1; /* Full visibility */
  transition: transform 0.8s ease;
}

.premium-category-card:hover .card-image {
  transform: scale(1.1);
}

.card-image-overlay {
  display: none; /* Removed the overlay so the image is fully visible and distinct */
}

.card-content-wrapper {
  position: relative;
  flex: 1; /* Take up remaining space */
  display: flex;
  flex-direction: column;
  padding: 25px 25px; /* Reduced padding */
  z-index: 4;
  text-align: left;
  transform: translateY(10px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.premium-category-card:hover .card-content-wrapper {
  transform: translateY(0);
}

.card-content-wrapper h3 {
  font-size: 1.5rem; /* Reduced font size */
  color: #111827; /* Dark text for light glass */
  font-weight: 800;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(255,255,255,0.8);
  /* Alignment fix for multi-line titles */
  min-height: 4rem; /* Reduced min-height */
  display: flex;
  align-items: flex-end;
  padding-bottom: 12px;
  margin-bottom: 0;
}

.card-divider {
  width: 40px;
  height: 3px;
  background: #0077ff;
  margin: 0 0 20px 0;
  transition: all 0.4s ease;
}

.premium-category-card:hover .card-divider {
  width: 100px;
  background: #0055cc; /* Darker blue glow on hover */
  box-shadow: 0 0 15px rgba(0, 119, 255, 0.4);
}

.card-explore-link {
  color: rgba(17, 24, 39, 0.7); /* Dark grey */
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  opacity: 0; /* Hidden by default */
  transition: opacity 0.4s ease 0.1s, color 0.3s ease;
}

.premium-category-card:hover .card-explore-link {
  opacity: 1;
  color: #111827;
}

.card-arrow {
  transition: transform 0.3s ease;
  color: #0077ff;
}

.premium-category-card:hover .card-arrow {
  transform: translateX(8px);
}

/* 2. Infographic Center (Pinterest Style) */
.infographic-wrapper {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 0;
}

.infographic-container {
  position: relative;
  width: 100%;
  max-width: 900px; /* Increased for wider layout */
  height: 500px;
}

/* Center Hub */
.info-center {
  position: absolute;
  top: 50%;
  left: 20%; /* Moved to left */
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  background: white;
  border: 8px solid rgba(247, 160, 20, 0.15); /* Soft orange border */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 10;
  animation: centerPulse 2.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes centerPulse {
  0% {
    box-shadow: 0 10px 30px rgba(247, 160, 20, 0.2), 0 0 0 0 rgba(247, 160, 20, 0.6);
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    box-shadow: 0 15px 40px rgba(247, 160, 20, 0.4), 0 0 0 30px rgba(247, 160, 20, 0);
    transform: translate(-50%, -50%) scale(1.05); /* Breathing scale */
  }
  100% {
    box-shadow: 0 10px 30px rgba(247, 160, 20, 0.2), 0 0 0 0 rgba(247, 160, 20, 0);
    transform: translate(-50%, -50%) scale(1);
  }
}

.info-center h3 {
  font-size: 1.6rem;
  color: #f7a014; /* Yellow/Orange text */
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.2;
}

/* Right Semi-Circle Orbit */
.info-arc {
  position: absolute;
  top: 50%;
  left: 20%; /* Center of arc is same as hub */
  transform: translate(-50%, -50%);
  width: 280px; /* 140px radius */
  height: 280px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  /* Hide the left half, clip top/bottom */
  clip-path: polygon(50% 10%, 100% 10%, 100% 90%, 50% 90%);
  z-index: 1;
}


/* Node Containers */
.info-node {
  position: absolute;
  top: 50%; left: 20%;
  margin-top: -30px; /* Half of 60px height */
  margin-left: -30px; /* Half of 60px width */
  width: 60px;
  height: 60px;
  cursor: pointer;
  z-index: 5;
}

/* Branch lines from arc to nodes */
.info-node::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%; /* Start from left edge of node wrapper */
  width: 70px; /* 240px(node) - 30px(half node) - 140px(arc) = 70px */
  height: 2px;
  background: rgba(255,255,255,0.6);
  transform: translateY(-50%);
  z-index: -1;
}

/* Small dots on the arc where branches start */
.info-node::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(100% + 70px - 5px); /* Position at the arc intersection, centered */
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 10px rgba(255,255,255,0.5);
  z-index: -1;
}

/* Rotate wrapper out to the new closer radius (240px) */
.node-0 { --node-angle: 45deg; transform: rotate(-45deg) translateX(240px); }
.node-1 { --node-angle: 0deg; transform: rotate(0deg) translateX(240px); }
.node-2 { --node-angle: -45deg; transform: rotate(45deg) translateX(240px); }

/* The actual clickable circle */
.info-node-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  position: relative;
  background: #0d1b2a;
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0077ff;
  font-size: 1.2rem;
  box-shadow: 0 5px 15px rgba(0, 119, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Undo the wrapper rotation for the child elements so text is upright using the CSS variable */
.info-node-icon, .info-node-label { 
  transform: rotate(var(--node-angle, 0deg)); 
}

/* Hover effects */
.info-node:hover .info-node-icon {
  transform: rotate(var(--node-angle, 0deg)) scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 119, 255, 0.6);
  border-color: #0077ff;
}

/* Ribbon Labels */
.info-node-label {
  position: absolute;
  top: 50%;
  left: 70px; /* Icon width + gap */
  transform-origin: left center;
  margin-top: -20px; /* Vertically center label based on height */
  background: #ececec; /* Light grey ribbon */
  color: #333;
  width: 250px !important; /* Strictly enforce uniform width */
  box-sizing: border-box; /* Ensure padding doesn't affect total width */
  padding: 10px 15px 10px 30px; /* Extra left padding for cut */
  font-weight: 600;
  white-space: nowrap;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  /* Triangle cut on the left side to look like ribbon */
  clip-path: polygon(15px 0%, 100% 0%, 100% 100%, 15px 100%, 0% 50%);
  box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
  transition: all 0.3s ease;
  cursor: pointer;
}

.info-node:hover .info-node-label {
  background: #ffffff;
  color: #0077ff;
  box-shadow: 5px 10px 20px rgba(0, 119, 255, 0.3);
  transform: rotate(var(--node-angle, 0deg)) translateX(10px) !important;
  clip-path: polygon(5px 0%, 100% 0%, 100% 100%, 5px 100%, 0% 50%); /* Sharper arrow */
}

/* 3. Engineering Process Section (Light Theme) */
#process {
  background-color: #fcfcfc;
  border-top: 1px solid #eaeaea;
  border-bottom: 1px solid #eaeaea;
}

#process .section-title {
  color: #222 !important; /* Dark text for light background */
}

.process-zigzag {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.process-box {
  background: #ffffff;
  border: 1px solid #eaeaea;
  padding: 30px 50px 30px 30px; /* Extra right padding for the arrow */
  border-radius: 12px;
  text-align: left;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.process-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: #0077ff;
  transition: height 0.3s ease;
}

/* Arrow inside the box */
.process-box::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 25px;
  width: 12px;
  height: 12px;
  border-top: 3px solid #0077ff;
  border-right: 3px solid #0077ff;
  transform: translateY(-50%) rotate(45deg);
  opacity: 0.3;
  transition: all 0.3s ease;
}

.process-box:hover {
  background: #ffffff;
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  border-color: #d0e3ff;
}

.process-box:hover::before {
  height: 100%;
}

.process-box:hover::after {
  opacity: 1;
  right: 18px; /* Arrow moves right on hover */
}

/* Hide arrow on the last step */
.process-box:last-child::after {
  display: none;
}

.process-box h3 {
  color: #0077ff;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.process-box p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Background for inner pages */
.animated-page-bg {
  position: relative;
  z-index: 1; /* Content sits above the fixed background */
  min-height: 100vh;
}

/* Dedicated fixed background wrapper */
.fixed-bg-wrapper {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -2;
  overflow: hidden;
  background-color: #0b0f19;
}

/* The actual image that scales and pans */
.fixed-bg-image {
  position: absolute;
  top: -2%; left: -2%; right: -2%; bottom: -2%;
  background: 
    linear-gradient(135deg, rgba(5,8,16,0.4) 0%, rgba(15,22,38,0.6) 100%),
    url('../infographic-bg3.jpg') center/cover no-repeat;
  /* Smooth continuous animation */
  animation: bgZoomPan 20s ease-in-out infinite alternate;
}

@keyframes bgZoomPan {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.06) translate(-1%, -1%);
  }
}

/* Project Drawer Modal */
.project-drawer-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100000;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.project-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.project-drawer {
  width: 100%;
  max-width: 850px;
  height: 100%;
  background: white;
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  padding: 60px 50px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.drawer-layout {
  display: flex;
  gap: 40px;
  height: 100%;
  padding-top: 20px;
}

.drawer-left {
  flex: 1;
  display: flex;
  align-items: flex-start;
}

.drawer-right {
  flex: 1.2;
  display: flex;
  flex-direction: column;
}

.project-drawer-overlay.active .project-drawer {
  transform: translateX(0);
}

.drawer-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  font-size: 3rem;
  color: #333;
  cursor: pointer;
}

.drawer-header h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.drawer-header p {
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: 20px;
}

/* Contact Item Text Wrapping Fix */
.contact-item {
  width: 100%;
}
.contact-item > div:not(.icon-circle) {
  flex: 1;
  min-width: 0;
}
.contact-item > div > div {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}
@media (max-width: 768px) {
  .services-grid-layout {
    justify-content: flex-start;
    padding-left: 20px;
    padding-right: 20px;
  }
  .project-drawer {
    padding: 20px;
    width: 100%;
    max-width: 100%;
  }
  .drawer-layout {
    flex-direction: column;
    gap: 20px;
  }
  .drawer-left {
    width: 100%;
  }
  .drawer-right {
    width: 100%;
  }
  .globe-container {
    height: 50vh !important;
  }
  .infographic-wrapper {
    min-height: 400px;
    padding: 20px 0;
  }
  .infographic-container {
    transform: scale(0.65);
    transform-origin: left center;
  }
  .info-center, .info-arc, .info-node {
    left: 130px !important;
  }
  .info-center h3 {
    font-size: 2.2rem !important;
  }
  .info-node-label {
    font-size: 1.7rem !important;
    width: 380px !important;
    padding: 18px 20px 18px 45px !important;
    margin-top: -33px !important;
  }
}

@media (max-width: 480px) {
  .infographic-wrapper {
    min-height: 350px;
  }
  .infographic-container {
    transform: scale(0.48);
    transform-origin: left center;
  }
}





.project-drawer {
  width: 100% !important;
  max-width: 950px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(30px) !important;
  -webkit-backdrop-filter: blur(30px) !important;
  box-shadow: -20px 0 60px rgba(0,0,0,0.15) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.5) !important;
}

.drawer-left {
  flex: 1.2 !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 25px !important;
}
