/* ============================================================
   OceanTech Maritime — Global Styles
   Bootstrap 5 + Material Design + Dark/Light Theme
   ============================================================ */

/* --- CSS Custom Properties (Light Theme - Default) --- */
:root {
  /* Primary Colors */
  --primary: #1565C0;
  --primary-dark: #0D47A1;
  --primary-light: #42A5F5;
  --accent: #6C63FF;
  --accent-light: #8B83FF;

  /* Backgrounds */
  --bg: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-card: #ffffff;
  --bg-footer: #1a1a2e;
  --bg-dark-section: #0d0d1a;

  /* Text */
  --text: #212529;
  --text-secondary: #495057;
  --text-muted: #6c757d;
  --text-light: #f8f9fa;

  /* Borders */
  --border: #dee2e6;
  --border-light: rgba(0,0,0,0.08);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 12px 48px rgba(0,0,0,0.15);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 50%;

  /* Transitions */
  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Font */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Navbar */
  --navbar-bg: rgba(255,255,255,0.95);
  --navbar-shadow: 0 2px 20px rgba(0,0,0,0.08);

  /* Gradient Hero */
  --hero-gradient: linear-gradient(135deg, #0D47A1 0%, #1565C0 40%, #6C63FF 100%);
  --hero-overlay: rgba(0,0,0,0.4);
}

/* --- Dark Mode --- */
body.dark-mode {
  --primary: #42A5F5;
  --primary-dark: #1565C0;
  --primary-light: #64B5F6;
  --accent: #8B83FF;
  --accent-light: #A59FFF;

  --bg: #0d1117;
  --bg-secondary: #161b22;
  --bg-card: #1c2333;
  --bg-footer: #010409;
  --bg-dark-section: #010409;

  --text: #e6edf3;
  --text-secondary: #c9d1d9;
  --text-muted: #8b949e;
  --text-light: #f0f6fc;

  --border: #30363d;
  --border-light: rgba(255,255,255,0.06);

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-hover: 0 12px 48px rgba(0,0,0,0.5);

  --navbar-bg: rgba(13,17,23,0.95);
  --navbar-shadow: 0 2px 20px rgba(0,0,0,0.4);

  --hero-gradient: linear-gradient(135deg, #0D47A1 0%, #1a237e 40%, #311b92 100%);
  --hero-overlay: rgba(0,0,0,0.6);
}

/* --- Base Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg);
  color: var(--text);
  transition: background-color var(--transition), color var(--transition);
  overflow-x: hidden;
  line-height: 1.7;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

/* --- Smooth theme transitions --- */
body, 
.navbar, 
.navbar-brand, 
.nav-link, 
.btn,
.card,
.card-body,
.footer,
section,
h1, h2, h3, h4, h5, h6,
p, span, div,
.bg-light,
.bg-dark,
.text-muted {
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

/* ============================================================
   NAVBAR — Floating rounded design
   ============================================================ */
.navbar {
  padding: 0.6rem 1.5rem;
  min-height: 64px;
  background: var(--navbar-bg) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  /* Fixed centering — stretch across viewport, then cap and center */
  position: fixed;
  top: 0.75rem;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: calc(100% - 3rem);
  max-width: 1290px;
}

/* Remove Bootstrap container gutters inside navbar so the navbar's own padding handles spacing */
.navbar > .container,
.navbar > .container-fluid {
  padding-left: 0;
  padding-right: 0;
}

.navbar.navbar-scrolled {
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  padding: 0.4rem 1.5rem;
}

.navbar .navbar-brand img {
  height: 40px;
  transition: height var(--transition);
}

.navbar.navbar-scrolled .navbar-brand img {
  height: 34px;
}

.navbar .nav-link {
  color: var(--text) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  position: relative;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--primary);
  transition: transform var(--transition);
  border-radius: 2px;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.navbar .nav-link.active {
  color: var(--primary) !important;
  font-weight: 600;
}

/* Dropdown wrapper — ensure the hover zone covers the gap */
.navbar .dropdown {
  position: relative;
}

/* Hover bridge: invisible transparent area that connects
   the nav-link to the dropdown menu so the mouse never
   leaves the hover zone when moving down to click */
.navbar .dropdown > .dropdown-toggle::after {
  position: relative;
  z-index: 2;
  /* Reset the underline properties inherited from .nav-link::after
     to prevent a black/dark line from appearing over adjacent nav items */
  bottom: auto;
  left: auto;
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  transition: none;
  transform: none;
}

.navbar .dropdown-menu {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  margin-top: 0.75rem;
  top: 100%;
}

/* Invisible bridge pseudo-element that fills the gap between
   the nav-link and the dropdown-menu so hover is never broken */
.navbar .dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
  pointer-events: auto;
}

.navbar .dropdown-menu .dropdown-item {
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.navbar .dropdown-menu .dropdown-item:hover {
  background: var(--bg-secondary);
  color: var(--primary);
  transform: translateX(4px);
}

.navbar .dropdown-menu .dropdown-item.active {
  background: var(--primary);
  color: #fff;
}

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  width: 40px;
  height: 40px;
}

.theme-toggle:hover {
  background: var(--bg-secondary);
  transform: rotate(15deg);
}

.theme-toggle .material-icons {
  font-size: 24px;
}

/* Mobile toggler */
.navbar-toggler {
  border: none;
  padding: 0.5rem;
  color: var(--text);
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler .material-icons {
  font-size: 28px;
}

@media (max-width: 991.98px) {
  /* Tighter margins & smaller radius on mobile */
  .navbar {
    left: 0.75rem !important;
    right: 0.75rem !important;
    top: 0.5rem !important;
    width: auto !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: var(--radius-md) !important;
    padding: 0.55rem 0.8rem;
    min-height: 58px;
    overflow: visible;
  }

  /* Remove Bootstrap container gutters inside navbar to avoid double padding */
  .navbar > .container,
  .navbar > .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100%;
    width: 100%;
  }

  /* Ensure brand + toggler stay on one row with no wrapping */
  .navbar .navbar-brand {
    display: flex;
    align-items: center;
    margin-right: auto;
    padding: 0;
    max-width: 65%;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
  }

  .navbar .navbar-brand img {
    height: 32px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
  }

  .navbar .navbar-toggler {
    padding: 0.35rem;
    margin-left: auto;
    flex-shrink: 0;
    min-height: 42px;
  }

  .navbar .navbar-toggler .material-icons {
    font-size: 26px;
  }

  .navbar .navbar-nav {
    padding: 0.5rem 0;
    gap: 0.1rem;
  }

  /* Slide-down animation for mobile menu */
  .navbar-collapse.collapsing {
    transition: height 0.35s ease;
  }

  /* Visual separator between navbar bar and collapsed menu */
  .navbar-collapse.show,
  .navbar-collapse.collapsing {
    border-top: 1px solid var(--border-light);
    margin-top: 0.35rem;
    padding-top: 0.2rem;
  }

  .navbar .nav-item {
    width: 100%;
  }

  .navbar .nav-link {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.88rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
  }

  .navbar .nav-link:hover {
    background: var(--bg-secondary);
  }

  .navbar .nav-link::after {
    display: none;
  }

  .navbar .nav-link.active {
    border-left: 3px solid var(--primary);
    padding-left: 0.75rem !important;
    background: rgba(21, 101, 192, 0.08);
  }

  body.dark-mode .navbar .nav-link.active {
    background: rgba(66, 165, 245, 0.12);
  }

  /* Dropdown on mobile — visible card style */
  .navbar .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 0.2rem;
    margin: 0.2rem 0 0;
    border-left: none;
  }
  .navbar .dropdown-menu.show {
    overflow: visible;
  }

  .navbar .dropdown-menu .dropdown-item {
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
  }

  .navbar .dropdown-menu .dropdown-item:hover {
    background: var(--bg-card);
    transform: translateX(4px);
  }

  .navbar .dropdown-menu .dropdown-item.active {
    background: var(--primary);
    color: #fff;
  }

  /* Remove the hover bridge on mobile — dropdowns are click-based */
  .navbar .dropdown-menu::before {
    display: none;
  }

  /* Theme toggle inside mobile menu — compact and inline */
  .navbar-nav .theme-toggle {
    margin-top: 0.2rem;
    margin-left: 0;
    width: auto;
    height: auto;
    justify-content: flex-start;
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-sm);
    gap: 0.5rem;
    display: inline-flex;
  }

  .navbar-nav .theme-toggle:hover {
    background: var(--bg-secondary);
  }

  .navbar-nav .theme-toggle .material-icons {
    font-size: 19px;
  }

  /* Theme toggle text label (hidden on desktop) */
  .navbar-nav .theme-toggle::after {
    content: attr(data-label);
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 0.88rem;
  }

  /* Dropdown toggle arrow alignment */
  .navbar .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .navbar .dropdown-toggle::after {
    margin-left: auto;
  }

  /* Limit mobile menu height on small screens with scroll */
  .navbar-collapse {
    max-height: 70vh;
    overflow-y: auto;
  }
}

/* Extra small devices (phones < 400px) */
@media (max-width: 400px) {
  .navbar {
    left: 0.5rem !important;
    right: 0.5rem !important;
    padding: 0.55rem 0.6rem;
    top: 0.35rem !important;
    border-radius: var(--radius-sm) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .navbar > .container,
  .navbar > .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .navbar .navbar-brand {
    max-width: 55%;
  }

  .navbar .navbar-brand img {
    height: 28px;
  }

  .navbar .navbar-toggler {
    padding: 0.35rem;
    min-height: 44px;
  }

  .navbar .navbar-toggler .material-icons {
    font-size: 24px;
  }

  .navbar .nav-link {
    font-size: 0.83rem;
    padding: 0.4rem 0.6rem !important;
  }

  .navbar .navbar-nav {
    padding: 0.3rem 0;
    gap: 0.04rem;
  }
}

/* Small phones ( < 360px ) */
@media (max-width: 360px) {
  .navbar {
    left: 0.35rem !important;
    right: 0.35rem !important;
    padding: 0.15rem 0.4rem;
    top: 0.25rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 6px !important;
  }

  .navbar .navbar-brand {
    max-width: 50%;
  }

  .navbar .navbar-brand img {
    height: 20px;
  }

  .navbar .navbar-toggler {
    padding: 0.15rem;
  }

  .navbar .navbar-toggler .material-icons {
    font-size: 20px;
  }

  .navbar .nav-link {
    font-size: 0.78rem;
    padding: 0.35rem 0.5rem !important;
  }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hero-gradient);
  overflow: hidden;
  padding-top: 110px;
}

/* Hero background image with overlay */
.hero-section .hero-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  z-index: 0;
  animation: heroBgZoom 25s ease-in-out infinite alternate;
}

@keyframes heroBgZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  z-index: 1;
}

.hero-section .hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
}

/* Hero Badge */
.hero-section .hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeInDown 1s ease forwards;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-section h1 {
  font-size: 4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-section .hero-title-line {
  display: block;
}

.hero-section .text-gradient-hero {
  background: linear-gradient(135deg, #fff 0%, #64B5F6 50%, #8B83FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.dark-mode .hero-section .text-gradient-hero {
  background: linear-gradient(135deg, #fff 0%, #42A5F5 50%, #A59FFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-section .hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.9);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-section .hero-subtitle strong {
  color: #fff;
  font-weight: 700;
}

.hero-section .hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.3s forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-section .btn-hero-primary {
  background: #fff;
  color: var(--primary-dark);
  border: none;
  padding: 0.9rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-section .btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  color: var(--primary-dark);
}

.hero-section .btn-hero-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
  padding: 0.9rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition);
}

.hero-section .btn-hero-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  transform: translateY(-3px);
  color: #fff;
}

/* Hero Wave Divider */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  z-index: 3;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Floating shapes */
.hero-shape {
  position: absolute;
  border-radius: var(--radius-full);
  opacity: 0.08;
  z-index: 1;
}

.hero-shape-1 {
  width: 600px;
  height: 600px;
  background: #fff;
  top: -200px;
  right: -150px;
  animation: float 20s ease-in-out infinite;
}

.hero-shape-2 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  bottom: -100px;
  left: -100px;
  animation: float 25s ease-in-out infinite reverse;
}

.hero-shape-3 {
  width: 200px;
  height: 200px;
  background: var(--primary-light);
  top: 30%;
  left: 10%;
  animation: float 15s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(30px, -30px) rotate(5deg); }
  50% { transform: translate(-20px, 20px) rotate(-5deg); }
  75% { transform: translate(20px, 30px) rotate(3deg); }
}

/* Responsive Hero */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  .hero-section .hero-subtitle {
    font-size: 1rem;
  }
  .hero-section .hero-bg-image {
    left: 0;
    right: 0;
    width: 100%;
  }
  .hero-shape-1 {
    width: 380px;
    height: 380px;
    right: -90px;
  }
  .hero-shape-2 {
    width: 260px;
    height: 260px;
    left: -60px;
  }
  .hero-shape-3 {
    top: 35%;
    left: 6%;
  }
  .hero-section .btn-hero-primary,
  .hero-section .btn-hero-secondary {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }
  .page-header h1 {
    font-size: 2rem;
  }
  .section-header h2 {
    font-size: 1.8rem;
  }
  .section-padding {
    padding: 60px 0;
  }
}

/* ============================================================
   SECTION STYLES
   ============================================================ */
.section-padding {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-header .section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.section-header .section-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Section with bg-secondary */
.section-bg-alt {
  background-color: var(--bg-secondary);
}

/* ============================================================
   CARDS
   ============================================================ */
.card-custom {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  height: 100%;
}

.card-custom:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.card-custom .card-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
}

.card-custom .card-icon .material-icons,
.card-custom .card-icon .material-icons-outlined {
  font-size: 28px;
}

.card-custom h5 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

.card-custom p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================================
   SERVICE CARDS (Home Page)
   ============================================================ */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.service-card .service-card-img {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.service-card .service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-card-img img {
  transform: scale(1.1);
}

.service-card .service-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover .service-card-overlay {
  opacity: 1;
}

.service-card .service-card-overlay .material-icons-outlined {
  color: #fff;
  font-size: 48px;
  animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.service-card .service-card-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.service-card .service-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  margin-top: -48px;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 15px rgba(21, 101, 192, 0.3);
  position: relative;
  z-index: 2;
}

.service-card .service-card-icon .material-icons {
  font-size: 26px;
}

.service-card .service-card-body h4 {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.service-card .service-card-body p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.25rem;
}

.service-card .service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  text-decoration: none;
}

.service-card .service-card-link .material-icons {
  font-size: 18px;
  transition: transform var(--transition);
}

.service-card .service-card-link:hover {
  color: var(--accent);
}

.service-card .service-card-link:hover .material-icons {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .service-card .service-card-img {
    height: 180px;
  }
}

/* Service Feature Card */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  height: 100%;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.feature-card .feature-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
}

.feature-card .feature-icon .material-icons-outlined {
  font-size: 32px;
}

.feature-card h5 {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition);
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(21, 101, 192, 0.35);
  color: #fff;
}

.btn-outline-custom {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition);
}

.btn-outline-custom:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================================
   SVG WAVE DIVIDERS
   ============================================================ */
.wave-divider {
  position: relative;
  width: 100%;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 80px;
}

.wave-divider.top {
  margin-bottom: -1px;
}

.wave-divider.bottom {
  margin-top: -1px;
}

/* ============================================================
   SCROLL TO TOP BUTTON
   ============================================================ */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 999;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.scroll-to-top .material-icons {
  font-size: 24px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-footer);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 0;
}

.footer h5 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer p, .footer a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer a:hover {
  color: var(--primary-light);
}

.footer .footer-logo img {
  height: 50px;
  margin-bottom: 1rem;
}

.footer .social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer .social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
  text-decoration: none;
  font-size: 18px;
}

.footer .social-link:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

.footer .footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer .footer-contact-item .material-icons {
  font-size: 20px;
  color: var(--primary-light);
  margin-top: 2px;
}

.footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
  margin-top: 3rem;
  text-align: center;
}

.footer .footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form-wrapper {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
}

.contact-form-wrapper .form-control {
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-family: var(--font-family);
  transition: all var(--transition);
}

.contact-form-wrapper .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.15);
  background: var(--bg);
}

.contact-form-wrapper .form-control::placeholder {
  color: var(--text-muted);
}

.contact-form-wrapper textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.contact-info-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  height: 100%;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.contact-info-card .contact-info-content {
  flex: 1;
  min-width: 0;
}

.contact-info-card p,
.contact-info-card a {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

body.dark-mode .contact-info-card a {
  color: #ffffff;
  font-weight: 500;
}

body.dark-mode .contact-info-card a:hover {
  color: var(--primary-light);
}

/* Contact text — light mode (muted) */
.contact-section-heading {
  color: var(--text-muted);
}

/* Contact text white in dark mode */
body.dark-mode .contact-info-card p,
body.dark-mode .contact-info-card h6 {
  color: #e6edf3 !important;
}

body.dark-mode .contact-form-wrapper p.text-muted {
  color: #c9d1d9 !important;
}

body.dark-mode .contact-section-heading {
  color: #e6edf3 !important;
}

.contact-info-card .contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  flex-shrink: 0;
}

.contact-info-card .contact-info-icon .material-icons {
  font-size: 24px;
}

/* ============================================================
   PAGE HEADER (Inner Pages)
   ============================================================ */
.page-header {
  position: relative;
  padding: 140px 0 80px;
  background: var(--hero-gradient);
  text-align: center;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  z-index: 1;
}

.page-header .page-header-content {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}

.page-header .breadcrumb {
  justify-content: center;
  background: transparent;
  padding: 0;
  margin: 0;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

.page-header .breadcrumb-item.active {
  color: #fff;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,0.5);
}

/* ============================================================
   SERVICE DETAIL SECTIONS
   ============================================================ */
.service-detail {
  padding: 80px 0;
}

.service-detail .service-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.service-detail .service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail .service-content h3 {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.service-detail .service-content p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.service-detail .service-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.service-detail .service-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.service-detail .service-list li .material-icons {
  color: var(--primary);
  font-size: 20px;
  margin-top: 2px;
}

/* Two-column list */
.list-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 2rem;
}

@media (max-width: 576px) {
  .list-two-col {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   ANIMATION HELPERS
   ============================================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   MISC UTILITY
   ============================================================ */
.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
}

body.dark-mode .glass-card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

/* Blockquote */
.blockquote-custom {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  background: var(--bg-secondary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
}

/* Stats / Counter */
.stat-item {
  text-align: center;
  padding: 1.5rem;
}

.stat-item .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-item .stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================================
   HERO SECTION VARIANT (Inner pages with image background)
   ============================================================ */
.hero-mini {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-mini::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,71,161,0.85), rgba(108,99,255,0.75));
  z-index: 1;
}

.hero-mini .hero-mini-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.hero-mini h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .hero-mini h1 {
    font-size: 2.2rem;
  }
}

/* Image gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}
