/* 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 */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  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;
  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 */
  .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: #000000;
    transition: all 0.3s linear;
    border-radius: 10px;
    transform-origin: 1px;
  }
  nav.scrolled .hamburger span {
    background: #000000;
  }
  .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: absolute;
    top: 100%;
    right: 5%;
    width: 220px;
    height: auto;
    max-height: 280px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
  }
  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px);
  }
  .nav-links a {
    color: var(--accent) !important;
    font-size: 1.05rem;
    margin: 2px 0;
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s;
  }
  .nav-links a:hover {
    background: rgba(0, 119, 255, 0.05);
  }
}

@media (min-width: 993px) {
  .hamburger {
    display: none;
  }
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  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: 95%;
  max-width: 1200px;
  height: 85vh;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 20px;
  padding: 50px 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); }
}

@media (max-width: 768px) {
  .job-modal-content {
    padding: 30px 20px;
  }
  .job-modal-content .split-layout {
    flex-direction: column;
  }
  .section-padding {
    padding: 20px 0;
  }
  .about .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .stat-num {
    font-size: 2.2rem;
  }
  .section-title {
    font-size: 2.2rem;
  }
}
@media (max-width: 480px) {
  .about .stats {
    grid-template-columns: 1fr;
  }
  .consultation-fab {
    padding: 12px 20px;
    font-size: 0.9rem;
    bottom: 20px;
    right: 20px;
  }
}
