/* ============================================
   MRO-STYLE.CSS - LUNAS LANGKAWI
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ✅ BODY FONT SAMA MACAM INDEX */
body {
    font-family: 'Open Sans', sans-serif;
    background: #0a1622;
    color: #eef2f8;
    overflow-x: hidden;
}

/* ========== ROOT VARIABLES ========== */
:root {
    --navy-deep: #0a1622;
    --navy-soft: #1a3a5c;
    --gold: #c8a84b;
    --gold-glow: #e2c97e;
    --white-pure: #ffffff;
    --text-mute: #b0c4de;
}

/* ========== TYPOGRAPHY SAMA MACAM INDEX ========== */
.idx-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin: 0 0 0.6rem;
}

.eyebrow-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 0.6rem;
}

.stat-label-txt {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #1e2a3a; }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 10px; }

/* ========== FULLSCREEN SECTIONS ========== */
.fullscreen-section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
}

/* ========== HERO SECTION ========== */
.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}
.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.02);
    filter: brightness(0.45) contrast(1.1) saturate(1.2);
    transition: transform 8s ease-out, filter 1.2s ease;
    animation: slowZoomHero 14s ease-out forwards;
}
@keyframes slowZoomHero {
    0% { transform: scale(1.02); filter: brightness(0.45) contrast(1.1); }
    100% { transform: scale(1.12); filter: brightness(0.55) contrast(1.15); }
}
.hero-glow-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 40%, rgba(200,168,75,0.12) 0%, rgba(10,22,34,0.65) 80%);
    z-index: 1;
    pointer-events: none;
    animation: subtlePulseGlow 4s infinite alternate;
}
@keyframes subtlePulseGlow {
    0% { background: radial-gradient(circle at 30% 40%, rgba(200,168,75,0.05) 0%, rgba(10,22,34,0.7) 85%); }
    100% { background: radial-gradient(circle at 40% 50%, rgba(200,168,75,0.22) 0%, rgba(10,22,34,0.6) 80%); }
}
.hero-exposure-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.55) 100%);
    z-index: 1;
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 20;
    text-align: center;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    backdrop-filter: blur(2px);
    animation: fadeInUpHero 1.2s ease-out;
}
@keyframes fadeInUpHero {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.35em;
    color: var(--gold);
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}

/* ✅ HERO TITLE — SEMUA BARIS SAIZ SAMA
   Animation muncul berturutan selepas page masuk */
.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1.05;
    color: var(--white-pure);
    margin: 1.2rem 0 0.4rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
    text-transform: uppercase;
}
.hero-title .t1 {
    display: block;
    font-size: clamp(2.8rem, 7vw, 6rem);   /* ✅ SAMA */
    opacity: 0;
    animation: lineIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.5s;
}
.hero-title .t2 {
    display: block;
    font-size: clamp(2.8rem, 7vw, 6rem);   /* ✅ SAMA */
    opacity: 0;
    animation: lineIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.95s;
}
.hero-title .t3 {
    display: block;
    font-size: clamp(2.8rem, 7vw, 6rem);   /* ✅ SAMA */
    letter-spacing: 0.12em;
    background: linear-gradient(135deg,#7986f1 0%, #0d3e8f 60%, #fff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    opacity: 0;
    animation: lineIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.4s;
}

/* ✅ Animation muncul — slide naik + blur hilang */
@keyframes lineIn {
    from { opacity: 0; transform: translateY(35px); filter: blur(8px); }
    to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

.hero-rule {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 1.5rem auto;
}
.hero-text-group {
    text-align: center;
}
.hero-sub {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.1em;
    font-weight: 500;
    margin-top: 0.5rem;
}

/* ✅ MARINE TAG — Cinzel badge (sama macam hero-badge index) */
.hero-marine-tag {
    font-family: 'Cinzel', serif;
    font-size: clamp(0.6rem, 2.2vw, 0.85rem);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--navy-deep), #0d2038);
    display: inline-block;
    padding: 8px 26px;
    border-radius: 60px;
    color: var(--white-pure);
    border-left: 3px solid var(--gold);
    border-right: 1px solid rgba(200,168,75,0.3);
    box-shadow: 0 8px 25px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
    margin-top: 0.5rem;
    margin-bottom: 1.2rem;
}
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 25;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
}
.scroll-bar-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(200,168,75,0.7);
    border-radius: 18px;
    margin: 0 auto 8px;
    position: relative;
}
.scroll-bar-mouse::before {
    content: '';
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 7px;
    background: var(--gold);
    border-radius: 2px;
    animation: wheelMove 1.8s infinite;
}
@keyframes wheelMove {
    0% { opacity: 1; transform: translateX(-50%) translateY(0);}
    80% { opacity: 0.3; transform: translateX(-50%) translateY(12px);}
    100% { opacity: 1; transform: translateX(-50%) translateY(0);}
}

/* ========== INTRO & STATS ========== */
.section-light-bg {
    background: #f4f7fc;
    color: #1a2a4f;
}
.section-dark-bg {
    background: #0f2a4f;
    color: white;
}
.gold-accent-line {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 1rem auto;
    border-radius: 2px;
}
.stat-strip-custom {
    background: #0b2b44;
    padding: 3rem 0;
}

/* ✅ STAT NUMBER — Teko (sama macam index), TIADA effect bounce */
.stat-number {
    font-family: 'Teko', sans-serif;
    font-weight: 600;
    font-size: 3rem;
    color: var(--gold);
    line-height: 1;
    position: relative;
    display: inline-block;
    z-index: 1;
}
.counter-text {
    position: relative;
    z-index: 1;
}
.stat-suffix {
    font-size: 1.6rem;
    color: var(--gold);
}

.badge-pill-navy {
    background: rgba(255,255,255,0.12);
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
}
.image-pop-frame {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 20px 35px -10px rgba(0,0,0,0.3);
    transition: transform 0.4s ease, box-shadow 0.3s;
}
.image-pop-frame img {
    width: 100%;
    display: block;
    transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.1), filter 0.5s;
    filter: brightness(0.95) contrast(1.05);
}
.image-pop-frame:hover img {
    transform: scale(1.04);
    filter: brightness(1.02) contrast(1.08);
}

/* ✅ FEATURE CARD — font sama macam index */
.feature-card {
    background: white;
    border-radius: 24px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    height: 100%;
}
.feature-card h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
}
.feature-card p {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.88rem;
    line-height: 1.7;
}
.feature-card i {
    font-size: 2.2rem;
    color: var(--gold);
}

/* progress bar auto-scroll */
#auto-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-glow));
    z-index: 9999;
    transition: width 0.08s linear;
    box-shadow: 0 0 6px var(--gold);
}

/* toast */
.autoscroll-toast {
    position: fixed;
    bottom: 2rem;
    right: 1.5rem;
    background: rgba(10,22,34,0.85);
    backdrop-filter: blur(12px);
    color: #e2c97e;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    z-index: 9998;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-left: 3px solid var(--gold);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.autoscroll-toast.show {
    opacity: 1;
}

/* ========== FLOATING SOCIAL SIDEBAR ========== */
.floating-social {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.social-tab {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 12px;
  background: var(--navy-deep);
  color: var(--gold);
  text-decoration: none;
  border-radius: 8px 0 0 8px;
  transform: translateX(calc(100% - 46px));
  transition: all 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
  box-shadow: -2px 2px 10px rgba(0,0,0,0.4);
  white-space: nowrap;
  border: 1px solid rgba(200,168,75,0.15);
  border-right: none;
}

.social-tab i { font-size: 1.2rem; width: 22px; text-align: center; flex-shrink: 0; }

.social-text {
  margin-left: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.social-tab:hover { transform: translateX(0); color: #fff; border-color: transparent; }
.social-tab:hover .social-text { opacity: 1; }

.instagram-tab:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); box-shadow: 0 0 15px rgba(225, 48, 108, 0.4); }
.facebook-tab:hover { background: #1877F2; box-shadow: 0 0 15px rgba(24, 119, 242, 0.4); }
.linkedin-tab:hover { background: #0A66C2; box-shadow: 0 0 15px rgba(10, 102, 194, 0.4); }

/* ========== SECTION NAV — KIRI TENGAH (HIDDEN, HOVER UNTUK TUNJUK) ========== */
.drawer-trigger {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%) translateX(calc(-100% + 16px)); /* sembunyi — hanya 16px hujung kelihatan */
  z-index: 997;
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 10px;
  background: rgba(10, 22, 34, 0.9);
  color: var(--gold);
  border: 1px solid rgba(200,168,75,0.25);
  border-left: none;
  border-radius: 0 12px 12px 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 3px 0 15px rgba(0,0,0,0.35);
  transition: transform 0.35s ease, background 0.3s ease, color 0.3s ease;
}

/* Hover desktop — slide keluar penuh */
.drawer-trigger:hover,
.drawer-trigger:focus-visible {
  transform: translateY(-50%) translateX(0);
  background: var(--gold);
  color: var(--navy-deep);
}

.drawer-trigger i {
  writing-mode: horizontal-tb;
  font-size: 0.9rem;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 13, 24, 0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* Panel slide dari KIRI */
.drawer-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: min(320px, 85vw);
  height: 100vh;
  background: #0a1622;
  border-right: 1px solid rgba(200,168,75,0.2);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
  display: flex;
  flex-direction: column;
  box-shadow: 15px 0 50px rgba(0,0,0,0.5);
}

.drawer-panel.open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.drawer-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 4px;
}

.drawer-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white-pure);
  margin: 0;
}

.drawer-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  color: var(--text-mute);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.drawer-close:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
}

.drawer-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.drawer-list::-webkit-scrollbar { width: 4px; }
.drawer-list::-webkit-scrollbar-thumb { background: rgba(200,168,75,0.3); border-radius: 4px; }

.drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  margin-bottom: 2px;
  transition: background 0.25s ease;
}

.drawer-item:hover {
  background: rgba(255,255,255,0.05);
}

.drawer-item.active {
  background: rgba(200,168,75,0.12);
}

.di-num {
  font-family: 'Teko', sans-serif;
  font-size: 1.15rem;
  color: var(--gold);
  opacity: 0.6;
  min-width: 22px;
  line-height: 1;
}

.di-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.di-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white-pure);
  transition: color 0.25s ease;
}

.drawer-item:hover .di-name { color: var(--gold-glow); }
.drawer-item.active .di-name { color: var(--gold); }

.di-desc {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.65rem;
  color: var(--text-mute);
}

/* responsiveness */
@media (max-width: 768px) {
    .fullscreen-section {
        min-height: auto;
        padding: 80px 0;
    }

    .scroll-indicator {
      bottom: 100px;
    }

    /* Trigger kekal kiri tengah — tunjuk sedikit untuk mudah ditekan */
    .drawer-trigger {
      transform: translateY(-50%) translateX(calc(-100% + 10px));
      padding: 14px 8px;
      font-size: 0.58rem;
    }

    /* Floating Social Bar untuk Mobile */
    .floating-social {
      right: 50%;
      top: auto;
      bottom: 20px;
      transform: translateX(50%);
      flex-direction: row;
      gap: 8px;
      background: rgba(10, 22, 34, 0.95);
      padding: 8px 12px;
      border-radius: 50px;
      border: 1px solid rgba(200,168,75,0.15);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
      z-index: 998;
    }

    .social-tab {
      padding: 10px 12px;
      border-radius: 50px;
      transform: none;
      border: none;
      box-shadow: none;
      background: transparent;
    }

    .social-tab i {
      font-size: 1.1rem;
      width: auto;
    }

    .social-text {
      display: none;
    }

    .instagram-tab:active, .instagram-tab:hover {
      background: linear-gradient(45deg, #f09433, #dc2743, #bc1888);
      color: #fff;
    }

    .facebook-tab:active, .facebook-tab:hover {
      background: #1877F2;
      color: #fff;
    }

    .linkedin-tab:active, .linkedin-tab:hover {
      background: #0A66C2;
      color: #fff;
    }

    .autoscroll-toast {
      bottom: 130px;
      right: 50%;
      transform: translateX(50%);
    }
}

@media (max-width: 480px) {
    .floating-social {
      bottom: 15px;
      padding: 6px 10px;
      gap: 6px;
    }
    .social-tab {
      padding: 8px 10px;
    }
    .social-tab i {
      font-size: 1rem;
    }
}