/* ===================================================
   MAHATIR MUHAMMAD — Maritime Portfolio
   Theme: Dark Ocean Professional (Refined & Responsive)
   =================================================== */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ── */
:root {
  --navy-deep: #080C18;
  --navy-dark: #0A0E1A;
  --navy-mid: #0D1B2A;
  --navy-light: #0D3B6E;
  --ocean-blue: #1565C0;
  --teal: #00C4CC;
  --teal-light: #4DD9DC;
  --teal-dark: #00979E;
  --gold: #F5C842;
  --gold-light: #FFD96A;
  --white: #F0F4FF;
  --white-muted: #A8B4C8;
  --glass-bg: rgba(13, 27, 42, 0.75);
  --glass-border: rgba(0, 196, 204, 0.22);
  --card-bg: rgba(13, 27, 42, 0.85);
  --shadow-teal: 0 8px 32px rgba(0, 196, 204, 0.16);
  --shadow-gold: 0 8px 32px rgba(245, 200, 66, 0.2);
  --gradient-hero: linear-gradient(135deg, #080C18 0%, #0D1B2A 50%, #0A1628 100%);
  --gradient-teal: linear-gradient(135deg, #00C4CC, #1565C0);
  --gradient-gold: linear-gradient(135deg, #F5C842, #FF8C00);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 14px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--navy-deep);
  color: var(--white);
  line-height: 1.65;
  overflow-x: clip;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  font-family: inherit;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--navy-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--teal);
  border-radius: 3px;
}

/* ── Selection ── */
::selection {
  background: var(--teal);
  color: var(--navy-deep);
}

/* ── Utility ── */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--gradient-teal);
  border-radius: 1px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 12px;
}

.section-title span {
  color: var(--teal);
}

.section-desc {
  color: var(--white-muted);
  font-size: 0.98rem;
  max-width: 580px;
  line-height: 1.6;
}

.section-header {
  margin-bottom: 44px;
}

section {
  padding: 85px 0;
  position: relative;
  overflow: visible;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.14);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

.btn:hover::before {
  transform: translateX(0);
}

.btn-primary {
  background: var(--gradient-teal);
  color: var(--navy-deep);
  box-shadow: 0 6px 20px rgba(0, 196, 204, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 196, 204, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(240, 244, 255, 0.35);
}

.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(0, 196, 204, 0.08);
  transform: translateY(-2px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.badge-gold {
  background: rgba(245, 200, 66, 0.15);
  color: var(--gold);
  border: 1px solid rgba(245, 200, 66, 0.35);
}

.badge-teal {
  background: rgba(0, 196, 204, 0.12);
  color: var(--teal);
  border: 1px solid rgba(0, 196, 204, 0.3);
}

.badge-gray {
  background: rgba(168, 180, 200, 0.12);
  color: var(--white-muted);
  border: 1px solid rgba(168, 180, 200, 0.25);
}

.badge-yellow {
  background: rgba(255, 193, 7, 0.12);
  color: #FFC107;
  border: 1px solid rgba(255, 193, 7, 0.35);
}

.badge-green {
  background: rgba(76, 175, 80, 0.14);
  color: #66BB6A;
  border: 1px solid rgba(76, 175, 80, 0.35);
}

/* ── Reveal Animation ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ═══════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

#navbar.scrolled {
  background: rgba(8, 12, 24, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--glass-border);
  padding: 12px 0;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.35);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--gradient-teal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo span {
  font-size: 0.9rem;
  font-family: var(--font-body);
  font-weight: 600;
  -webkit-text-fill-color: var(--white);
  display: block;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--white-muted);
  letter-spacing: 0.03em;
  transition: var(--transition);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-teal);
  border-radius: 1px;
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

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

.nav-cta {
  background: var(--gradient-teal);
  color: var(--navy-deep) !important;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600 !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  box-shadow: 0 4px 18px rgba(0, 196, 204, 0.4);
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: transparent;
  border: none;
  z-index: 2050;
  position: relative;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--teal);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--teal);
}

/* Mobile nav overlay backdrop */
.nav-mobile-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 8, 16, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile nav slide-in drawer from side */
.nav-mobile {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(82vw, 320px);
  height: 100vh;
  background: rgba(10, 18, 32, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid rgba(0, 196, 204, 0.25);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.6);
  z-index: 2010;
  display: flex;
  flex-direction: column;
  padding: 22px 18px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
  visibility: hidden;
  box-sizing: border-box;
}

.nav-mobile.open {
  transform: translateX(0);
  visibility: visible;
}

.nav-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 16px;
}

.nav-mobile-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--teal);
}

.nav-mobile-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}

.nav-mobile-close:hover,
.nav-mobile-close:active {
  background: rgba(0, 196, 204, 0.2);
  color: var(--teal);
  border-color: var(--teal);
  transform: rotate(90deg);
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  overflow-y: auto;
}

.nav-mobile-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  background: rgba(13, 27, 42, 0.5);
  border: 1px solid transparent;
  transition: var(--transition);
}

.nav-mobile-links a i {
  font-size: 0.95rem;
  width: 20px;
  text-align: center;
  color: var(--teal);
  transition: var(--transition);
}

.nav-mobile-links a:hover,
.nav-mobile-links a:active {
  background: rgba(0, 196, 204, 0.12);
  color: var(--teal);
  border-color: rgba(0, 196, 204, 0.3);
  transform: translateX(4px);
}

.nav-mobile-links a.nav-mobile-cta {
  background: var(--gradient-teal) !important;
  color: var(--navy-deep) !important;
  font-weight: 700 !important;
  margin-top: 4px;
}

.nav-mobile-links a.nav-mobile-cta i {
  color: var(--navy-deep) !important;
}

.nav-mobile-footer {
  padding-top: 14px;
  border-top: 1px solid var(--glass-border);
  margin-top: auto;
}

/* ═══════════════════════════════════════════════════
   HERO SECTION (Framed & Repositioned for Desktop & Mobile)
═══════════════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0;
  background-image: url('assets/image/Hero.jpg');
  background-size: cover;
  /* Shift downward on desktop so the captain's head, face, uniform, and epaulettes are clearly visible */
  background-position: center 26%;
  background-repeat: no-repeat;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(8, 12, 24, 0.88) 0%,
      rgba(13, 27, 42, 0.78) 50%,
      rgba(8, 12, 24, 0.90) 100%);
  z-index: 0;
}

#hero>* {
  position: relative;
  z-index: 1;
}

#particles-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

#hero>.waves-container {
  position: absolute;
  bottom: 0px;
  left: 0;
  right: 0;
  z-index: 2;
  line-height: 0;
  pointer-events: none;
}

.waves-container svg {
  display: block;
  width: 100%;
  height: 60px;
}

.wave1 {
  animation: wave-move 8s linear infinite;
}

.wave2 {
  animation: wave-move 12s linear infinite reverse;
  opacity: 0.5;
}

.wave3 {
  animation: wave-move 16s linear infinite;
  opacity: 0.3;
}

@keyframes wave-move {
  0% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(-3%);
  }

  100% {
    transform: translateX(0);
  }
}

.hero-text-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 105px 0 75px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 196, 204, 0.12);
  border: 1px solid rgba(0, 196, 204, 0.35);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  animation: badge-glow 3s ease-in-out infinite;
}

@keyframes badge-glow {

  0%,
  100% {
    box-shadow: 0 0 0 rgba(0, 196, 204, 0);
  }

  50% {
    box-shadow: 0 0 18px rgba(0, 196, 204, 0.3);
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.hero-title .line1 {
  display: block;
  color: var(--white);
}

.hero-title .line2 {
  display: block;
  background: var(--gradient-teal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(0.92rem, 1.8vw, 1.12rem);
  color: var(--white-muted);
  margin-bottom: 10px;
  font-weight: 400;
}

.hero-tagline {
  font-size: 0.98rem;
  color: var(--white-muted);
  margin-bottom: 26px;
  font-style: italic;
  border-left: 3px solid var(--teal);
  padding-left: 14px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  background: rgba(13, 27, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-width: fit-content;
}

.stat-item {
  padding: 14px 24px;
  text-align: center;
  border-right: 1px solid var(--glass-border);
  transition: var(--transition);
}

.stat-item:last-child {
  border-right: none;
}

.stat-item:hover {
  background: rgba(0, 196, 204, 0.08);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1.1;
  display: block;
  margin-bottom: 3px;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--white-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* Scroll indicator */
#hero>.scroll-indicator {
  position: absolute;
  bottom: 40px;
  right: 32px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--white-muted);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }
}

.scroll-indicator::before {
  content: '';
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--teal), transparent);
}

/* ═══════════════════════════════════════════════════
   ABOUT SECTION
═══════════════════════════════════════════════════ */
#about {
  background: var(--navy-dark);
  margin-top: -2px;
  position: relative;
  z-index: 10;
}

.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: center;
}

.photo-card {
  position: relative;
  max-width: 320px;
  margin: 0 auto;
}

.photo-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--navy-light), var(--navy-mid));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-teal);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-badge {
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--navy-deep);
  text-align: center;
  line-height: 1.15;
  text-transform: uppercase;
  box-shadow: var(--shadow-gold);
  z-index: 2;
}

.photo-badge .yrs {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.about-intro {
  font-size: 1.02rem;
  color: var(--white-muted);
  margin-bottom: 28px;
  line-height: 1.75;
}

.about-intro strong {
  color: var(--white);
  font-weight: 600;
}

.personal-data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.data-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  background: rgba(13, 27, 42, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  transition: var(--transition);
  word-break: break-word;
}

.data-item:hover {
  border-color: rgba(0, 196, 204, 0.4);
  background: rgba(13, 59, 110, 0.18);
}

.data-label {
  font-size: 0.68rem;
  color: var(--teal);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.data-label i {
  font-size: 0.75rem;
}

.data-value {
  font-size: 0.86rem;
  color: var(--white);
  font-weight: 500;
}

.about-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════
   EXPERIENCE / SEA SERVICE
═══════════════════════════════════════════════════ */
#experience {
  background: var(--navy-deep);
}

.exp-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

.filter-btn {
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--white-muted);
  transition: var(--transition);
  font-family: var(--font-body);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient-teal);
  color: var(--navy-deep);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(0, 196, 204, 0.3);
}

.timeline {
  position: relative;
  padding: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--glass-border) 8%, var(--glass-border) 92%, transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 50px 1fr;
  gap: 0;
  margin-bottom: 30px;
  align-items: start;
  transition: var(--transition);
}

.timeline-item:nth-child(odd) .timeline-card {
  grid-column: 1;
}

.timeline-item:nth-child(odd) .timeline-empty {
  grid-column: 3;
}

.timeline-item:nth-child(even) .timeline-card {
  grid-column: 3;
}

.timeline-item:nth-child(even) .timeline-empty {
  grid-column: 1;
}

.timeline-dot {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 20px;
  position: relative;
  z-index: 1;
}

.dot-inner {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid var(--navy-deep);
  box-shadow: 0 0 0 3px var(--teal), 0 0 14px rgba(0, 196, 204, 0.5);
  transition: var(--transition);
}

.timeline-item:hover .dot-inner {
  transform: scale(1.3);
  box-shadow: 0 0 0 4px var(--teal), 0 0 20px rgba(0, 196, 204, 0.7);
}

.dot-inner.gold {
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--gold), 0 0 14px rgba(245, 200, 66, 0.5);
}

.timeline-card {
  padding: 20px 22px;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.timeline-card:hover {
  border-color: rgba(0, 196, 204, 0.4);
  box-shadow: var(--shadow-teal);
  transform: translateY(-2px);
}

.tc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.tc-vessel {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}

.tc-company {
  font-size: 0.78rem;
  color: var(--teal);
  font-weight: 500;
}

.tc-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.tc-info {
  font-size: 0.78rem;
  color: var(--white-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tc-info i {
  color: var(--teal);
  width: 14px;
  font-size: 0.72rem;
}

.tc-period {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--white-muted);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--glass-border);
}

.tc-period i {
  color: var(--teal);
}

/* ═══════════════════════════════════════════════════
   CERTIFICATIONS SECTION (With Direct Doc Buttons)
═══════════════════════════════════════════════════ */
#certifications {
  background: var(--navy-dark);
  position: relative;
  overflow: visible !important;
}

.cert-controls-wrapper {
  position: -webkit-sticky;
  position: sticky;
  top: 72px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 10px 18px;
  background: linear-gradient(135deg, rgba(8, 22, 40, 0.95) 0%, rgba(13, 33, 58, 0.92) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 196, 204, 0.38);
  border-radius: 14px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  margin-bottom: 30px;
  transform: none !important;
}

.cert-tabs {
  display: flex;
  gap: 4px;
  background: rgba(4, 12, 24, 0.85);
  border: 1px solid rgba(0, 196, 204, 0.2);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  padding: 5px;
  max-width: fit-content;
}

.cert-download-bar {
  display: flex;
  align-items: center;
}

.btn-download-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, rgba(245, 200, 66, 0.12) 0%, rgba(0, 196, 204, 0.18) 100%);
  border: 1px solid rgba(245, 200, 66, 0.45);
  border-radius: 10px;
  color: #FEE775;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.btn-download-all:hover {
  background: var(--gradient-gold);
  color: var(--navy-deep);
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(245, 200, 66, 0.45);
  transform: translateY(-2px);
}

.btn-download-all i {
  font-size: 0.95rem;
}

.cert-tab {
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(230, 241, 255, 0.75);
  transition: var(--transition);
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: 7px;
  position: relative;
}

.cert-tab::after {
  content: '\f054';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.65rem;
  margin-left: auto;
  color: var(--teal);
  opacity: 0.7;
  display: none; /* shown only on mobile via media query */
}

.cert-tab:hover {
  border-color: rgba(0, 196, 204, 0.3);
  background: rgba(0, 196, 204, 0.14);
  color: var(--white);
}

.cert-tab.active {
  background: var(--gradient-teal);
  color: var(--navy-deep);
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(0, 196, 204, 0.45);
}

.cert-tab.active::after {
  color: var(--navy-deep);
  opacity: 1;
}

.cert-panel {
  display: none;
}

.cert-panel.active {
  display: block;
  margin-bottom: 28px;
}

.cert-panel.active:last-of-type {
  margin-bottom: 0;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.cert-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 20px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-teal);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cert-card:hover::before {
  opacity: 1;
}

.cert-card:hover {
  border-color: rgba(0, 196, 204, 0.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow-teal);
}

.cert-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cert-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(0, 196, 204, 0.1);
  border: 1px solid rgba(0, 196, 204, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--teal);
}

.cert-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.35;
}

.cert-number {
  font-size: 0.72rem;
  color: var(--white-muted);
  font-family: monospace;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.cert-date {
  font-size: 0.73rem;
  color: var(--white-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 14px;
}

.cert-date i {
  color: var(--teal);
  font-size: 0.68rem;
}

/* Clickable document button */
.cert-doc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(0, 196, 204, 0.12);
  color: var(--teal);
  border: 1px solid rgba(0, 196, 204, 0.3);
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
}

.cert-doc-btn:hover {
  background: var(--gradient-teal);
  color: var(--navy-deep);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(0, 196, 204, 0.35);
  transform: translateY(-1px);
}

.cert-doc-btn.disabled {
  background: rgba(255, 193, 7, 0.08);
  color: #FFC107;
  border: 1px dashed rgba(255, 193, 7, 0.35);
  cursor: default;
  pointer-events: none;
}

/* Travel Grid */
.travel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.travel-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.travel-card:hover {
  border-color: rgba(0, 196, 204, 0.4);
  box-shadow: var(--shadow-teal);
  transform: translateY(-3px);
}

.travel-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--navy-deep);
  flex-shrink: 0;
}

.travel-info {
  flex: 1;
  min-width: 0;
}

.travel-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.travel-number {
  font-size: 0.75rem;
  color: var(--teal);
  font-family: monospace;
  margin-bottom: 8px;
}

.travel-dates {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.travel-date-item {
  font-size: 0.72rem;
  color: var(--white-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.travel-date-item i {
  color: var(--teal);
  font-size: 0.66rem;
}

/* ═══════════════════════════════════════════════════
   SKILLS SECTION
═══════════════════════════════════════════════════ */
#skills {
  background: var(--navy-deep);
}

.skills-layout {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 1000px;
  margin: 0 auto;
  gap: 48px;
  align-items: start;
}

.skills-col-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skills-col-title i {
  color: var(--teal);
}

.skill-bars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-bar-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.skill-bar-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--white);
}

.skill-bar-pct {
  font-size: 0.78rem;
  color: var(--teal);
  font-weight: 600;
}

.skill-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: var(--gradient-teal);
  border-radius: 3px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.competency-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.comp-card {
  padding: 14px 12px;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  transition: var(--transition);
  text-align: center;
}

.comp-card:hover {
  border-color: rgba(0, 196, 204, 0.35);
  transform: translateY(-2px);
  box-shadow: var(--shadow-teal);
}

.comp-icon {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.comp-name {
  font-size: 0.75rem;
  color: var(--white-muted);
  font-weight: 500;
  line-height: 1.3;
}

/* ═══════════════════════════════════════════════════
   GALLERY SECTION
═══════════════════════════════════════════════════ */
#gallery {
  background: var(--navy-dark);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  background: var(--navy-mid);
  border: 1px solid var(--glass-border);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(8, 12, 24, 0.88) 0%,
      rgba(0, 196, 204, 0.15) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: var(--white);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  font-size: 1.4rem;
  color: var(--teal);
}

.gallery-overlay span {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0 8px;
}

/* ── Lightbox ── */
#lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 16, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
}

#lightbox-overlay.open {
  display: flex;
}

#lightbox-img {
  max-width: min(92vw, 850px);
  max-height: 78vh;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: lb-in 0.3s ease;
}

@keyframes lb-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

#lightbox-caption {
  color: var(--white-muted);
  font-size: 0.85rem;
  text-align: center;
}

#lightbox-close {
  position: fixed;
  top: 16px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--glass-border);
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10000;
}

#lightbox-close:hover {
  background: var(--gradient-teal);
  color: var(--navy-deep);
}

/* ═══════════════════════════════════════════════════
   CONTACT SECTION
═══════════════════════════════════════════════════ */
#contact {
  background: var(--navy-deep);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.contact-lead {
  font-size: 1rem;
  color: var(--white-muted);
  margin-bottom: 28px;
  line-height: 1.7;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(13, 27, 42, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  transition: var(--transition);
}

.contact-item:hover {
  border-color: rgba(0, 196, 204, 0.35);
  background: rgba(13, 59, 110, 0.16);
  transform: translateX(4px);
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(0, 196, 204, 0.1);
  border: 1px solid rgba(0, 196, 204, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: var(--teal);
  flex-shrink: 0;
}

.contact-text-label {
  font-size: 0.68rem;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-text-value {
  font-size: 0.88rem;
  color: var(--white);
  font-weight: 500;
}

/* Form */
.contact-form-wrapper {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(10px);
}

.form-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 22px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--white-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 9px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.88rem;
  transition: var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--white-muted);
  opacity: 0.5;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  background: rgba(0, 196, 204, 0.05);
  box-shadow: 0 0 0 3px rgba(0, 196, 204, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-submit {
  width: 100%;
}

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
footer {
  background: var(--navy-deep);
  border-top: 1px solid var(--glass-border);
  padding: 40px 0 24px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  background: var(--gradient-teal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-tagline {
  font-size: 0.74rem;
  color: var(--white-muted);
  margin-top: 3px;
  font-style: italic;
}

.footer-links {
  display: flex;
  gap: 22px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--white-muted);
}

.footer-links a:hover {
  color: var(--teal);
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-muted);
  font-size: 0.92rem;
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--gradient-teal);
  color: var(--navy-deep);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 196, 204, 0.35);
}

.footer-copy {
  text-align: center;
  font-size: 0.74rem;
  color: var(--white-muted);
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
}

.footer-copy span {
  color: var(--teal);
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE (Mobile-First Polish)
═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 280px 1fr;
    gap: 40px;
  }

  .skills-layout {
    gap: 36px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .timeline::before {
    left: 22px;
  }

  .timeline-item {
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto;
    margin-bottom: 24px;
  }

  .timeline-item .timeline-dot {
    grid-column: 1;
    grid-row: 1;
    padding-top: 18px;
    justify-content: center;
  }

  .timeline-item:nth-child(odd) .timeline-card,
  .timeline-item:nth-child(even) .timeline-card {
    grid-column: 2;
    grid-row: 1;
  }

  .timeline-item .timeline-empty {
    display: none;
  }

  #hero>.scroll-indicator {
    display: none;
  }
}

@media (max-width: 768px) {
  section {
    padding: 55px 0;
  }

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

  .section-header {
    margin-bottom: 30px;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hero Mobile Layout - text center-top, buttons+stats bottom */
  #hero {
    min-height: 100vh;
    background-position: center top;
  }

  .hero-content {
    padding: 300px 0 0;
    align-items: flex-start;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .hero-text-group {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .hero-badge {
    font-size: 0.62rem;
    padding: 4px 10px;
    margin-bottom: 30px;
  }

  .hero-title {
    font-size: 2.7rem;
    line-height: 1.1;
    margin-bottom: 35px;
  }

  .hero-subtitle {
    font-size: 0.82rem;
    line-height: 1.3;
    margin-bottom: 8px;
    color: var(--teal-light);
  }

  .hero-tagline {
    font-size: 0.76rem;
    line-height: 1.4;
    margin-bottom: 0;
    padding-left: 10px;
    border-left-width: 2px;
  }

  /* Buttons + stats stick together at the bottom */
  .hero-bottom-group {
    margin-top: auto;
    width: 100%;
    padding-bottom: 70px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
    margin-bottom: 0;
  }

  .hero-actions .btn {
    width: 100%;
    padding: 9px 14px;
    font-size: 0.82rem;
    justify-content: center;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 10px;
  }

  .stat-item {
    border-bottom: 1px solid var(--glass-border);
    padding: 8px 10px;
  }

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .stat-item:nth-child(3),
  .stat-item:nth-child(4) {
    border-bottom: none;
  }

  .stat-number {
    font-size: 1.1rem;
    margin-bottom: 1px;
  }

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

  /* About Mobile — Compact & Neat */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-photo {
    display: flex;
    justify-content: center;
  }

  .photo-card {
    max-width: 190px;
    margin: 0 auto;
  }

  .photo-badge {
    width: 60px;
    height: 60px;
    bottom: -6px;
    right: -6px;
  }

  .photo-badge .yrs {
    font-size: 1.05rem;
  }

  .about-intro {
    font-size: 0.86rem;
    line-height: 1.55;
    margin-bottom: 16px;
  }

  .personal-data {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 18px;
  }

  .data-item {
    padding: 8px 10px;
    border-radius: 8px;
    gap: 2px;
  }

  .data-label {
    font-size: 0.62rem;
    gap: 4px;
  }

  .data-value {
    font-size: 0.78rem;
  }

  .about-actions {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .about-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
    font-size: 0.82rem;
  }

  /* Experience Mobile — Sleek & Compact Timeline */
  .filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 18px;
  }

  .filter-tab {
    padding: 6px 12px;
    font-size: 0.74rem;
    border-radius: 6px;
  }

  .timeline::before {
    left: 17px;
  }

  .timeline-item {
    grid-template-columns: 34px 1fr;
    margin-bottom: 12px;
  }

  .timeline-item .timeline-dot {
    padding-top: 13px;
  }

  .dot-inner {
    width: 10px;
    height: 10px;
  }

  .timeline-card {
    padding: 12px 13px;
    border-radius: 10px;
  }

  .tc-vessel {
    font-size: 0.94rem;
  }

  .tc-company {
    font-size: 0.72rem;
  }

  .badge {
    font-size: 0.62rem;
    padding: 3px 7px;
  }

  .tc-body {
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-top: 6px;
  }

  .tc-info {
    font-size: 0.72rem;
  }

  .tc-period {
    font-size: 0.68rem;
    margin-top: 6px;
    padding-top: 6px;
  }

  /* Certifications Mobile — Controls & Cards */
  .cert-controls-wrapper {
    position: -webkit-sticky;
    position: sticky;
    top: 58px;
    z-index: 100;
    flex-direction: column;
    gap: 7px;
    padding: 8px 10px;
    background: linear-gradient(180deg, rgba(8, 22, 40, 0.96) 0%, rgba(13, 33, 58, 0.94) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 196, 204, 0.38);
    border-radius: 12px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    margin-bottom: 16px;
    transform: none !important;
  }

  .cert-tabs {
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    overflow-x: visible;
    flex-wrap: nowrap;
    gap: 5px;
    padding: 0;
    margin-bottom: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .cert-tab {
    width: 100%;
    justify-content: flex-start;
    white-space: normal;
    font-size: 0.8rem;
    padding: 10px 14px;
    flex-shrink: unset;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(13, 27, 42, 0.85);
    color: var(--white);
  }

  .cert-tab::after {
    display: block; /* show chevron on mobile */
  }

  .cert-tab.active {
    background: var(--gradient-teal);
    color: var(--navy-deep);
    font-weight: 700;
    border-color: transparent;
  }

  .cert-download-bar {
    width: 100%;
  }

  .btn-download-all {
    width: 100%;
    justify-content: center;
    padding: 11px 14px;
    font-size: 0.82rem;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(245, 200, 66, 0.14) 0%, rgba(0, 196, 204, 0.2) 100%);
    border: 1px solid rgba(245, 200, 66, 0.5);
    color: #FEE775;
  }

  .cert-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cert-card {
    padding: 12px 13px;
    border-radius: 10px;
  }

  .cert-name {
    font-size: 0.88rem;
    margin-bottom: 4px;
  }

  .cert-number,
  .cert-date {
    font-size: 0.72rem;
    margin-bottom: 2px;
  }

  .cert-doc-btn {
    padding: 7px 11px;
    font-size: 0.75rem;
    margin-top: 8px;
    border-radius: 6px;
  }

  .travel-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .travel-card {
    padding: 12px 13px;
    border-radius: 10px;
    gap: 10px;
    flex-direction: column;
  }

  .travel-name {
    font-size: 0.88rem;
  }

  .travel-number {
    font-size: 0.72rem;
  }

  .travel-dates {
    gap: 2px;
    margin-bottom: 6px;
  }

  .travel-date-item {
    font-size: 0.68rem;
  }

  /* Skills Mobile — Compact 2-Col Grid */
  .skills-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .competency-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .comp-card {
    padding: 10px 8px;
    border-radius: 8px;
    gap: 4px;
  }

  .comp-icon {
    font-size: 1.35rem;
  }

  .comp-name {
    font-size: 0.72rem;
    line-height: 1.25;
  }

  /* Gallery Mobile — Compact 2-Col Grid */
  .gallery-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 14px;
  }

  .gallery-filter-tab {
    padding: 6px 12px;
    font-size: 0.74rem;
    border-radius: 6px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .gallery-item {
    aspect-ratio: 4/3;
    border-radius: 8px;
  }

  /* Contact Mobile — Clean Form & Items */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .contact-info-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }

  .contact-item {
    padding: 10px 12px;
    border-radius: 8px;
    gap: 10px;
  }

  .contact-item-icon {
    width: 32px;
    height: 32px;
    font-size: 0.82rem;
    border-radius: 6px;
  }

  .contact-item-val {
    font-size: 0.8rem;
  }

  .contact-form-wrapper {
    padding: 18px 14px;
    border-radius: 12px;
  }

  .form-group {
    margin-bottom: 10px;
  }

  .form-group label {
    font-size: 0.72rem;
    margin-bottom: 3px;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 9px 11px;
    font-size: 0.82rem;
    border-radius: 6px;
  }

  .btn-submit {
    padding: 10px 14px;
    font-size: 0.82rem;
  }

  /* Footer Mobile */
  footer {
    padding: 28px 0 18px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }

  section {
    padding: 38px 0;
  }

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

/* ═══════════════════════════════════════
   FLOATING ACTION BUTTONS (BOTTOM-LEFT)
═══════════════════════════════════════ */
.floating-actions {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 990;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.floating-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 8px;
  border-radius: 50px;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease, padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  user-select: none;
}

.floating-btn:hover {
  padding: 8px 18px 8px 8px;
}

.floating-text {
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  overflow: hidden;
  transition: max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, margin-left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  margin-left: 0;
}

.floating-btn:hover .floating-text {
  max-width: 150px;
  opacity: 1;
  margin-left: 8px;
}

.floating-icon-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);
}

.floating-whatsapp .floating-icon-wrap {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.floating-whatsapp:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.55), 0 4px 12px rgba(0, 0, 0, 0.4);
  color: #FFFFFF;
}

.floating-whatsapp:active {
  transform: translateY(-1px) scale(0.98);
}

/* WhatsApp Pulse Animation */
.floating-pulse-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: wa-pulse 2.2s infinite ease-out;
  pointer-events: none;
}

@keyframes wa-pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.85;
  }
  65% {
    transform: scale(1.4);
    opacity: 0;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

/* Floating Download CV Button */
.floating-cv {
  background: linear-gradient(135deg, rgba(13, 27, 42, 0.95) 0%, rgba(20, 36, 60, 0.95) 100%);
  color: var(--cyan, #00C4CC);
  border: 1px solid rgba(0, 196, 204, 0.45);
  box-shadow: 0 8px 24px rgba(0, 196, 204, 0.22), 0 2px 6px rgba(0, 0, 0, 0.4);
}

.floating-cv .floating-icon-wrap {
  background: rgba(0, 196, 204, 0.15);
  color: #00E5FF;
}

.floating-cv:hover {
  background: linear-gradient(135deg, #00C4CC 0%, #007799 100%);
  color: #050810;
  border-color: #00E5FF;
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 32px rgba(0, 196, 204, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.floating-cv:hover .floating-icon-wrap {
  background: rgba(5, 8, 16, 0.15);
  color: #050810;
}

.floating-cv:active {
  transform: translateY(-1px) scale(0.98);
}

/* Responsive Floating Actions */
@media (max-width: 768px) {
  .floating-actions {
    bottom: 20px;
    left: 16px;
    gap: 10px;
  }

  .floating-btn {
    padding: 6px;
    font-size: 0.82rem;
  }

  .floating-btn:hover {
    padding: 6px 14px 6px 6px;
  }

  .floating-icon-wrap {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .floating-actions {
    bottom: 16px;
    left: 12px;
    gap: 8px;
  }

  .floating-btn {
    padding: 6px;
    font-size: 0.78rem;
  }

  .floating-btn:hover {
    padding: 6px 12px 6px 6px;
  }

  .floating-icon-wrap {
    width: 32px;
    height: 32px;
    font-size: 0.92rem;
  }
}