/* OTS - Overseas Transport System Modern & Animated CSS */
:root {
  --ots-brand-primary: #0f172a;
  --ots-brand-secondary: #0284c7;
  --ots-brand-accent: #00f2fe;
  --ots-brand-amber: #f59e0b;
  --ots-dark-bg: #0b1329;
  --ots-light-bg: #f8fafc;
  --ots-card-bg: #ffffff;
  --ots-text-dark: #1e293b;
  --ots-text-muted: #64748b;
  --ots-border: #e2e8f0;
  --ots-radius: 12px;
  --ots-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.1);
  --ots-transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
  color: var(--ots-text-dark);
  background-color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--ots-transition);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(2, 132, 199, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.6);
  }
}

.animate-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: var(--ots-transition);
}

.animate-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Top Info Bar */
.top-bar {
  background-color: var(--ots-dark-bg);
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.top-bar-info {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.top-bar-info span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.top-bar-info i {
  color: var(--ots-brand-accent);
}

.top-bar-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.top-bar-links a {
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.top-bar-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Header Navigation */
header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--ots-transition);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 55px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.03);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

nav a {
  font-weight: 600;
  color: var(--ots-text-dark);
  font-size: 0.95rem;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ots-brand-secondary);
  transition: width 0.3s ease;
}

nav a:hover::after, nav a.active::after {
  width: 100%;
}

nav a:hover, nav a.active {
  color: var(--ots-brand-secondary);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 260px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
  border-radius: var(--ots-radius);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: var(--ots-transition);
  list-style: none;
  display: block;
  border: 1px solid var(--ots-border);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 0.7rem 1.2rem;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--ots-text-dark);
}

.dropdown-menu li a:hover {
  background-color: var(--ots-light-bg);
  color: var(--ots-brand-secondary);
  padding-left: 1.5rem;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 620px;
  background: linear-gradient(to right, rgba(11, 19, 41, 0.8) 0%, rgba(15, 23, 42, 0.45) 50%, rgba(0, 0, 0, 0.15) 100%), url('/images/hero-bg.jpg') center right/cover no-repeat;
  display: flex;
  align-items: center;
  color: #fff;
  padding: 5rem 1.5rem;
  overflow: hidden;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  animation: fadeInUp 1s ease-out forwards;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  background: rgba(11, 19, 41, 0.8);
  border: 1px solid var(--ots-brand-accent);
  color: var(--ots-brand-accent);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  max-width: 850px;
  color: #ffffff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.9);
}

.hero p {
  font-size: 1.25rem;
  color: #f1f5f9;
  max-width: 720px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--ots-transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--ots-brand-secondary) 0%, #0369a1 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.6);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  margin-left: 1rem;
}

.btn-secondary:hover {
  background-color: #fff;
  color: var(--ots-text-dark);
  transform: translateY(-3px);
}

/* Stats Counter Banner */
.stats-banner {
  background: var(--ots-dark-bg);
  border-y: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem 1.5rem;
  color: #fff;
}

.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--ots-brand-accent);
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.85rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Services Grid Section */
.section {
  padding: 5rem 1.5rem;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.8rem;
  color: var(--ots-brand-primary);
}

.section-subtitle {
  text-align: center;
  color: var(--ots-text-muted);
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
  font-size: 1.05rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: #fff;
  border: 1px solid var(--ots-border);
  border-radius: var(--ots-radius);
  overflow: hidden;
  box-shadow: var(--ots-shadow);
  transition: var(--ots-transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  border-color: var(--ots-brand-secondary);
}

.service-img-wrapper {
  overflow: hidden;
  height: 220px;
  position: relative;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover img {
  transform: scale(1.08);
}

.service-card-body {
  padding: 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card h3 {
  font-size: 1.3rem;
  color: var(--ots-brand-primary);
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.service-card p {
  color: var(--ots-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex: 1;
}

.service-card a {
  color: var(--ots-brand-secondary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.service-card a i {
  transition: transform 0.3s ease;
}

.service-card a:hover i {
  transform: translateX(5px);
}

/* Experience Highlight Section */
.experience-section {
  background: var(--ots-light-bg);
  padding: 6rem 1.5rem;
  position: relative;
}

.float-img {
  animation: floatSlow 5s ease-in-out infinite;
  border-radius: var(--ots-radius);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Contact Info Box */
.info-box-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 3.5rem auto 0 auto;
}

.info-box {
  background: #fff;
  padding: 2.2rem;
  border-radius: var(--ots-radius);
  border: 1px solid var(--ots-border);
  box-shadow: var(--ots-shadow);
  transition: var(--ots-transition);
}

.info-box:hover {
  transform: translateY(-5px);
  border-color: var(--ots-brand-secondary);
  box-shadow: 0 15px 30px rgba(2, 132, 199, 0.15);
}

.info-box i {
  font-size: 2.2rem;
  color: var(--ots-brand-secondary);
  margin-bottom: 1rem;
}

.info-box h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--ots-brand-primary);
}

.info-box p {
  color: var(--ots-text-muted);
  font-size: 0.95rem;
}

/* Footer */
footer {
  background-color: var(--ots-dark-bg);
  color: #94a3b8;
  padding: 5rem 1.5rem 2rem 1.5rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 1.4rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--ots-brand-accent);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.7rem;
}

.footer-col a:hover {
  color: #fff;
  padding-left: 5px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0 auto;
  text-align: center;
  font-size: 0.9rem;
}

/* /* Navigation Backdrop Overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 19, 41, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 998;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

body.nav-open {
  overflow: hidden !important;
}

/* Mobile Navigation Button */
.mobile-nav-toggle {
  display: none;
  background: var(--ots-light-bg);
  border: 1px solid var(--ots-border);
  color: var(--ots-brand-primary);
  font-size: 1.3rem;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--ots-transition);
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
}

.mobile-nav-toggle:hover,
.mobile-nav-toggle:focus {
  background: var(--ots-brand-secondary);
  color: #ffffff;
  border-color: var(--ots-brand-secondary);
}

/* Responsive Touch Table Wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--ots-radius);
  box-shadow: var(--ots-shadow);
  border: 1px solid var(--ots-border);
  background: #ffffff;
  margin-bottom: 1.5rem;
}

.table-responsive table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
}

.mobile-only-hint {
  display: none;
}

.stc-card {
  background: #fff;
  padding: clamp(1.1rem, 3.5vw, 1.8rem) clamp(1.1rem, 4vw, 2.2rem);
  border-radius: var(--ots-radius);
  border: 1px solid var(--ots-border);
  box-shadow: var(--ots-shadow);
  transition: var(--ots-transition);
}



/* Container Utility Padding */
.container {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1024px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .top-bar-container {
    padding: 0.5rem 1.2rem;
  }

  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  header {
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .nav-container {
    position: relative;
    padding: 0.8rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  header nav,
  #mainNav {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.22);
    padding: 1.2rem 1.5rem;
    border-bottom: 4px solid var(--ots-brand-secondary);
    z-index: 1000;
    border-radius: 0 0 16px 16px;
  }

  header nav.open,
  #mainNav.open {
    display: block !important;
    animation: fadeInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    width: 100%;
  }

  nav ul li {
    width: 100%;
    border-bottom: 1px solid var(--ots-border);
    padding-bottom: 0.3rem;
  }

  nav ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.05rem;
    padding: 0.65rem 0.5rem;
    width: 100%;
    color: var(--ots-brand-primary);
    border-radius: 6px;
  }

  nav a:hover,
  nav a.active {
    background: var(--ots-light-bg);
  }

  .dropdown {
    position: relative;
    width: 100%;
  }

  .dropdown-menu {
    display: none !important;
    position: static;
    box-shadow: none;
    border: none;
    padding: 0.4rem 0 0.4rem 0.8rem;
    margin-top: 0.2rem;
    background: var(--ots-light-bg);
    border-radius: 8px;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    min-width: unset;
    width: 100%;
  }

  .dropdown:hover .dropdown-menu {
    display: none !important;
  }

  .dropdown.open .dropdown-menu {
    display: block !important;
  }

  .dropdown-menu li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 0.2rem;
  }

  .dropdown-menu li:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .dropdown-menu li a {
    font-size: 0.95rem;
    padding: 0.5rem 0.8rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .top-bar-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
  }

  .top-bar-info {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    font-size: 0.8rem;
  }

  .top-bar-links {
    justify-content: center;
    font-size: 0.85rem;
    flex-wrap: wrap;
  }

  .hero {
    min-height: auto;
    padding: 3.8rem 1rem 3rem 1rem;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .badge-tag {
    font-size: 0.78rem;
    padding: 0.4rem 0.9rem;
    max-width: 100%;
    word-break: break-word;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    line-height: 1.25;
    margin-bottom: 1.2rem;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 1.8rem;
    line-height: 1.6;
  }

  .hero-content div {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    max-width: 340px;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.4rem;
  }

  .btn-secondary {
    margin-left: 0;
  }

  .stats-banner {
    padding: 2rem 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .section {
    padding: 3.2rem 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  .grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .info-box-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
  }

  .float-img {
    animation: none; /* Disable vertical floating on touch devices for smoother performance */
  }

  /* Grid Column Override on full width cards */
  .grid-3 .info-box[style*="grid-column: 1 / -1"] {
    grid-column: auto !important;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 42px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero h1 {
    font-size: 1.65rem;
  }

  .hero p {
    font-size: 0.92rem;
  }

  .info-box {
    padding: 1.4rem;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .info-box-grid {
    grid-template-columns: 1fr;
  }

  .badge-tag {
    font-size: 0.72rem;
    padding: 0.35rem 0.75rem;
  }

  /* Form & Captcha Box Mobile Optimization */
  #captcha-code-box {
    font-size: 1rem !important;
    padding: 0.5rem 0.75rem !important;
  }
}

@media (max-width: 360px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .logo img {
    height: 36px;
  }

  .mobile-nav-toggle {
    padding: 0.4rem 0.65rem;
    font-size: 1.1rem;
  }
}


