:root {
  --nav-bg-transparent: rgba(255, 255, 255, 0.15);
  --nav-bg-transparent-hover: rgba(255, 255, 255, 0.25);
  --nav-border-transparent: rgba(255, 255, 255, 0.3);
  --nav-text-color: #fff;
  --hero-overlay: linear-gradient(135deg, rgba(0, 100, 200, 0.85) 0%, rgba(0, 0, 0, 0.7) 100%);
  --nav-gradient: linear-gradient(to right, #1e5799 0%, #3ccdbb 0%, #16c9f6 100%);
  --primary-color: #1e5799;
  --accent-color: #3ccdbb;
  --industrial-blue: #004ca8;
  --maritime-dark: #00387a;
}

/* ===== HERO SLIDER ===== */
.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  transform: scale(1.02);
  animation: kenBurns 20s infinite;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

@keyframes kenBurns {
  0% { transform: scale(1.02); }
  50% { transform: scale(1); }
  100% { transform: scale(1.02); }
}

/* NEW CURVED SHAPE FOR HEADER */
.header {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
  clip-path: ellipse(100% 100% at 50% 0%); /* Circular/elliptical shape at top */
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(rgba(0, 100, 200, 0.6), rgba(0, 0, 0, 0.5));
}

/* Slider navigation dots */
.slider-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.dot.active {
  background: #fff;
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.dot:hover { background: #fff; transform: scale(1.1); }

/* Slider navigation arrows */
.slider-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  z-index: 3;
  transform: translateY(-50%);
}

.slider-arrow {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* ===== HEADER CONTENT ===== */
.header-section {
  position: relative;
  z-index: 3;
  width: 100%;
  height: inherit;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

.center-div {
  max-width: 900px;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  background: rgba(0, 150, 255, 0.2);
  border: 1px solid rgba(0, 168, 255, 0.4);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
  backdrop-filter: blur(5px);
  animation: fadeInDown 0.8s ease;
}

/* FIXED FONT SIZES - Much better */
.center-div h1.font-weight-bold {
  font-size: 2.8rem; /* Reduced from 3.5rem */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.2rem; /* Slightly reduced */
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin: 30px 0;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem; /* Reduced from 3rem */
  font-weight: bold;
  color: #fff;
  margin-bottom: 5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.header-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.btn-primary, .btn-secondary {
  padding: 14px 35px; /* Slightly reduced */
  border-radius: 30px;
  font-size: 0.95rem; /* Reduced from 1rem */
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #00a8ff 0%, #0097e6 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 168, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 168, 255, 0.4);
  background: linear-gradient(135deg, #0097e6 0%, #0082cc 100%);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-3px);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 3;
  animation: bounce 2s infinite;
}

.scroll-text {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), transparent);
  margin: 0 auto;
}
/* Page-specific background images will be set inline */

/* ===== ENHANCED BACK TO TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #00a8ff 0%, #0097e6 100%);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(100px) scale(0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  box-shadow: 0 8px 25px rgba(0, 168, 255, 0.3);
  overflow: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.back-to-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0097e6 0%, #0082cc 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.back-to-top:hover::before {
  opacity: 1;
}

.back-to-top:hover {
  transform: translateY(0) scale(1.05) !important;
  box-shadow: 0 12px 30px rgba(0, 168, 255, 0.4);
}

/* Enhanced bounce animation */
@keyframes bounceIn {
  0% {
    transform: translateY(0) scale(1);
  }
  30% {
    transform: translateY(-15px) scale(1.05);
  }
  50% {
    transform: translateY(0) scale(0.95);
  }
  70% {
    transform: translateY(-5px) scale(1.02);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

.back-to-top.showing {
  animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Responsive */
@media (max-width: 768px) {
  .back-to-top {
    width: 50px;
    height: 50px;
    bottom: 30px;
    right: 30px;
    font-size: 20px;
  }
}

@media (max-width: 576px) {
  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 25px;
    right: 25px;
    font-size: 18px;
  }
}

/* ===== SMOOTH SCROLLING ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Hover effects for images */
.img-hover-zoom {
  overflow: hidden;
  border-radius: 8px;
}

.img-hover-zoom img {
  transition: transform 0.6s ease;
}

.img-hover-zoom:hover img {
  transform: scale(1.05);
}

/* Animation keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.stat-box {
  text-align: center;
  padding: 20px;
 background: white;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 150px;
  transition: transform 0.3s, background 0.3s;
}

.stat-box:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 500;
  color: #00a8ff;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
color: black;
font-weight: 400;
}

/* ===== FOOTER ===== */
.footer {
  background: black;
  color: white;
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  margin-bottom: 60px;
}

.footer-logo {
  height: 40px;
  margin-bottom: 20px;
}

.footer-description {
  color: white;
  margin-bottom: 25px;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #00a8ff;
  transform: translateY(-3px);
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: white;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: #00a8ff;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col ul li a:hover {
  color: #00a8ff;
  transform: translateX(5px);
}

.footer-col ul li a::before {
  content: '›';
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer-col ul li a:hover::before {
  opacity: 1;
}

.contact-info p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info i {
  color: #00a8ff;
  width: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #00a8ff;
}

/* ===== ANIMATION CLASSES ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.animate-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease;
}

.animate-left.animated {
  opacity: 1;
  transform: translateX(0);
}

.animate-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s ease;
}

.animate-right.animated {
  opacity: 1;
  transform: translateX(0);
}

.animate-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.6s ease;
}

.animate-scale.animated {
  opacity: 1;
  transform: scale(1);
}


/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* ===== RESPONSIVE ENHANCEMENTS ===== */
@media (max-width: 1200px) {
  .header {
    clip-path: ellipse(120% 100% at 50% 0%);
  }
}

@media (max-width: 992px) {
  .center-div h1.font-weight-bold {
    font-size: 2.3rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    padding: 0 15px;
  }
  
  .hero-stats {
    gap: 40px;
  }
  
  .stat-number {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .header {
    clip-path: ellipse(140% 100% at 50% 0%);
    height: 90vh;
  }
  
  .center-div h1.font-weight-bold {
    font-size: 2rem;
    padding: 0 10px;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-stats {
    gap: 30px;
    flex-wrap: wrap;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
  
  .header-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  
  .slider-nav {
    padding: 0 15px;
  }
  
  .slider-arrow {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .header {
    clip-path: ellipse(160% 100% at 50% 0%);
    height: 85vh;
  }
  
  .center-div h1.font-weight-bold {
    font-size: 1.7rem;
  }
  
  .hero-badge {
    font-size: 0.8rem;
    padding: 6px 15px;
  }
  
  .hero-stats {
    gap: 20px;
  }
  
  .stat-item {
    flex: 1;
    min-width: 100px;
  }
  
  .scroll-indicator {
    bottom: 20px;
  }
  
  .slider-nav {
    display: none; /* Hide arrows on very small screens */
  }
}@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .form-group {
    flex-direction: column;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 50px 0;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .project-card {
    margin-bottom: 30px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-col h4 {
    font-size: 1.1rem;
  }
}