/* ==========================================================================
   NIHALSAILOR - OFFICIAL BRAND & SHOWCASE STYLESHEET
   Aesthetic: Dark Fantasy Maritime, Cursed Corsair, Eldritch Gold & Crimson
   ========================================================================== */

:root {
  --bg-abyss: #03060a;
  --bg-primary: #070c16;
  --bg-secondary: #0d1527;
  --bg-card: rgba(13, 22, 38, 0.72);
  --bg-card-hover: rgba(20, 34, 60, 0.85);
  --bg-glass: rgba(7, 12, 22, 0.82);

  --gold-primary: #e5b95c;
  --gold-light: #fef0cd;
  --gold-dark: #997327;
  --gold-glow: rgba(229, 185, 92, 0.4);

  --crimson-eye: #ff2a4b;
  --crimson-glow: rgba(255, 42, 75, 0.65);
  --crimson-dark: #7a0c1e;

  --spectral-teal: #38bdf8;
  --spectral-glow: rgba(56, 189, 248, 0.35);

  --text-primary: #f6f3eb;
  --text-parchment: #dfd8c7;
  --text-muted: #8b9bb4;
  --text-dark: #070c16;

  --border-subtle: rgba(229, 185, 92, 0.16);
  --border-gold: rgba(229, 185, 92, 0.38);
  --border-crimson: rgba(255, 42, 75, 0.45);

  --font-cinzel: 'Cinzel', serif;
  --font-display: 'Cinzel Decorative', cursive, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-gilded: 0 10px 30px -10px rgba(0, 0, 0, 0.8), 0 0 15px rgba(229, 185, 92, 0.12);
  --shadow-cursed: 0 10px 35px -10px rgba(0, 0, 0, 0.9), 0 0 25px rgba(255, 42, 75, 0.25);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg-abyss);
  font-family: var(--font-body);
  color: var(--text-parchment);
  scrollbar-gutter: stable;
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  background: radial-gradient(circle at 50% 0%, #101c33 0%, var(--bg-primary) 45%, var(--bg-abyss) 100%);
  background-attachment: fixed;
  line-height: 1.65;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg-abyss);
}
::-webkit-scrollbar-thumb {
  background: #1b2842;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dark);
}

/* Typography Helpers */
h1, h2, h3, h4, .font-cinzel {
  font-family: var(--font-cinzel);
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.font-display {
  font-family: var(--font-display);
}

.text-gold {
  color: var(--gold-primary);
}

.text-crimson {
  color: var(--crimson-eye);
  text-shadow: 0 0 12px var(--crimson-glow);
}

.gold-gradient-text {
  background: linear-gradient(135deg, #fff2ce 0%, var(--gold-primary) 50%, #b2852e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.crimson-gradient-text {
  background: linear-gradient(135deg, #ff94a4 0%, var(--crimson-eye) 55%, #9b0b23 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Decorative Gold Filigree Divider */
.ornate-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin: 1.5rem auto;
  opacity: 0.85;
}

.ornate-divider::before,
.ornate-divider::after {
  content: "";
  height: 1px;
  width: 80px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.ornate-divider span {
  color: var(--gold-primary);
  font-size: 1.1rem;
}

/* Background Atmospheric Canvas */
#atmosphere-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}

/* Main Layout Wrapper */
.content-wrapper {
  position: relative;
  z-index: 2;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation Header */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: var(--transition-smooth);
  padding: 1.1rem 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(4, 7, 13, 0.75);
  border-bottom: 1px solid rgba(229, 185, 92, 0.12);
}

.main-nav.scrolled {
  padding: 0.75rem 0;
  background: rgba(4, 7, 13, 0.94);
  border-bottom: 1px solid rgba(229, 185, 92, 0.28);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  group: pointer;
}

.brand-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--gold-primary), var(--crimson-eye));
  box-shadow: 0 0 12px var(--gold-glow);
  transition: var(--transition-smooth);
}

.brand-avatar-wrap:hover {
  transform: rotate(5deg) scale(1.05);
  box-shadow: 0 0 20px var(--crimson-glow);
}

.brand-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  transition: var(--transition-smooth);
}

.brand-tag {
  display: block;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--gold-primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

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

.nav-link {
  font-family: var(--font-cinzel);
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-parchment);
  text-decoration: none;
  position: relative;
  padding: 0.35rem 0;
  transition: var(--transition-smooth);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-light);
  text-shadow: 0 0 10px var(--gold-glow);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Audio Control Button */
.btn-sound-toggle {
  background: rgba(19, 31, 54, 0.7);
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
}

.btn-sound-toggle:hover {
  background: var(--gold-primary);
  color: var(--bg-abyss);
  box-shadow: 0 0 14px var(--gold-glow);
  transform: scale(1.06);
}

.btn-sound-toggle.playing {
  border-color: var(--crimson-eye);
  color: var(--crimson-eye);
  animation: pulse-border 2.2s infinite ease-in-out;
}

.btn-sound-toggle.playing:hover {
  background: var(--crimson-eye);
  color: #fff;
}

@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 5px var(--crimson-glow); }
  50% { box-shadow: 0 0 18px var(--crimson-glow); }
}

/* Primary Button with Gilded Cut Corners */
.btn-corsair {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem 1.65rem;
  font-family: var(--font-cinzel);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(135deg, #182642, #0d172a);
  color: var(--gold-light);
  border: 1px solid var(--gold-primary);
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(229, 185, 92, 0.15);
}

.btn-corsair::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: 0.5s;
}

.btn-corsair:hover {
  background: linear-gradient(135deg, var(--gold-primary), #b8860b);
  color: var(--bg-abyss);
  box-shadow: 0 0 25px var(--gold-glow);
  transform: translateY(-2px);
}

.btn-corsair:hover::before {
  left: 100%;
}

.btn-crimson {
  background: linear-gradient(135deg, #3d0d17, #190509);
  border-color: var(--crimson-eye);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 0 12px rgba(255, 42, 75, 0.2);
}

.btn-crimson:hover {
  background: linear-gradient(135deg, var(--crimson-eye), #a80f28);
  color: #fff;
  box-shadow: 0 0 30px var(--crimson-glow);
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 0 5rem;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: brightness(0.62) contrast(1.15) saturate(1.1);
  transform: scale(1.02);
  transition: transform 10s ease-out;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(7, 12, 22, 0.3) 0%, rgba(4, 7, 13, 0.85) 75%, var(--bg-abyss) 100%),
              linear-gradient(to bottom, rgba(4, 7, 13, 0.6) 0%, transparent 35%, rgba(3, 6, 10, 0.95) 100%);
  z-index: -1;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.hero-emblem {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 2rem;
}

.hero-emblem-ring {
  position: absolute;
  inset: -8px;
  border: 2px dashed var(--gold-primary);
  border-radius: 50%;
  animation: rotate-compass 32s linear infinite;
  opacity: 0.6;
}

.hero-emblem-ring-outer {
  position: absolute;
  inset: -18px;
  border: 1px solid rgba(229, 185, 92, 0.3);
  border-radius: 50%;
}

.hero-emblem-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-primary);
  box-shadow: 0 0 35px rgba(229, 185, 92, 0.45), 0 0 20px var(--crimson-glow);
  position: relative;
  z-index: 2;
}

@keyframes rotate-compass {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.badge-corsair {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.25rem;
  background: rgba(16, 26, 46, 0.85);
  border: 1px solid var(--border-gold);
  border-radius: 30px;
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.badge-corsair .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--crimson-eye);
  box-shadow: 0 0 8px var(--crimson-eye);
  animation: pulse-red 1.8s infinite;
}

@keyframes pulse-red {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

.hero-title {
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.2rem;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.95);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--text-parchment);
  max-width: 720px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  opacity: 0.92;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* Quick Metrics Row */
.hero-stats-deck {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  background: rgba(10, 17, 30, 0.7);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  backdrop-filter: blur(12px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

.stat-box {
  text-align: center;
  position: relative;
}

.stat-box:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -0.625rem;
  top: 15%;
  height: 70%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border-gold), transparent);
}

.stat-number {
  font-family: var(--font-cinzel);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ==========================================================================
   SECTION COMMON STYLING
   ========================================================================== */
section {
  padding: 6.5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Vintage Gilded Card Container */
.gilded-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 2rem;
  position: relative;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.gilded-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold);
  transform: translateY(-5px);
  box-shadow: var(--shadow-gilded);
}

/* Brass Corner Ornaments */
.gilded-card::before,
.gilded-card::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--gold-primary);
  pointer-events: none;
  opacity: 0.6;
  transition: var(--transition-smooth);
}

.gilded-card::before {
  top: 6px;
  left: 6px;
  border-top: 2px solid var(--gold-primary);
  border-left: 2px solid var(--gold-primary);
}

.gilded-card::after {
  bottom: 6px;
  right: 6px;
  border-bottom: 2px solid var(--gold-primary);
  border-right: 2px solid var(--gold-primary);
}

.gilded-card:hover::before,
.gilded-card:hover::after {
  opacity: 1;
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   ABOUT / THE CAPTAIN'S TALE
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}

.captain-portrait-frame {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
}

.portrait-glow {
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle at 60% 40%, rgba(255, 42, 75, 0.4), transparent 70%),
              radial-gradient(circle at 20% 70%, rgba(229, 185, 92, 0.35), transparent 70%);
  filter: blur(25px);
  z-index: -1;
}

.portrait-wrapper {
  position: relative;
  border: 2px solid var(--gold-primary);
  padding: 8px;
  background: #090e19;
  border-radius: 6px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.9);
}

.portrait-img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  filter: contrast(1.1) brightness(0.95);
  transition: var(--transition-smooth);
}

.portrait-wrapper:hover .portrait-img {
  filter: contrast(1.15) brightness(1.02);
  transform: scale(1.02);
}

.portrait-badge-overlay {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: #0d1527;
  border: 1px solid var(--gold-primary);
  padding: 0.5rem 1.4rem;
  border-radius: 4px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  text-align: center;
}

.portrait-badge-overlay .title {
  font-family: var(--font-cinzel);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold-light);
  letter-spacing: 0.1em;
}

.portrait-badge-overlay .sub {
  font-size: 0.68rem;
  color: var(--crimson-eye);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.about-narrative h3 {
  font-size: 1.85rem;
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.about-narrative p {
  color: var(--text-parchment);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.pillar-item {
  background: rgba(13, 22, 38, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: var(--transition-smooth);
}

.pillar-item:hover {
  border-color: var(--gold-primary);
  background: rgba(20, 34, 60, 0.7);
  transform: translateY(-3px);
}

.pillar-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--gold-primary);
}

.pillar-title {
  font-family: var(--font-cinzel);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 0.25rem;
}

.pillar-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ==========================================================================
   ARMADA / PROJECTS SECTION
   ========================================================================== */
.armada-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  background: rgba(14, 23, 40, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-parchment);
  padding: 0.5rem 1.2rem;
  font-family: var(--font-cinzel);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gold-primary);
  color: var(--bg-abyss);
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px var(--gold-glow);
}

.armada-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-media {
  position: relative;
  height: 200px;
  margin: -2rem -2rem 1.5rem -2rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
  background: #090e18;
}

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

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

.project-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 22, 38, 0.95) 0%, rgba(13, 22, 38, 0.3) 60%, transparent 100%);
}

.project-category-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(4, 7, 13, 0.85);
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  backdrop-filter: blur(8px);
}

.project-title {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.tag-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  background: rgba(22, 38, 64, 0.6);
  border: 1px solid rgba(229, 185, 92, 0.15);
  color: var(--gold-light);
  border-radius: 4px;
}

.project-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

.btn-card-action {
  flex: 1;
  padding: 0.55rem 0.75rem;
  font-family: var(--font-cinzel);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-card-primary {
  background: rgba(229, 185, 92, 0.12);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
}

.btn-card-primary:hover {
  background: var(--gold-primary);
  color: var(--bg-abyss);
  box-shadow: 0 0 15px var(--gold-glow);
}

.btn-card-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-parchment);
}

.btn-card-secondary:hover {
  border-color: var(--text-parchment);
  background: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   ARSENAL / SKILLS SECTION
   ========================================================================== */
.arsenal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.arsenal-category-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.arsenal-category-title i {
  color: var(--gold-primary);
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.skill-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.skill-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
}

.skill-name {
  font-weight: 600;
  color: var(--text-primary);
}

.skill-level {
  font-family: var(--font-mono);
  color: var(--gold-primary);
  font-size: 0.82rem;
}

.skill-bar-track {
  width: 100%;
  height: 6px;
  background: #090e18;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(229, 185, 92, 0.15);
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #b8860b, var(--gold-primary), var(--gold-light));
  border-radius: 3px;
  box-shadow: 0 0 10px var(--gold-glow);
  width: 0%;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-bar-fill.crimson {
  background: linear-gradient(90deg, #991b1b, var(--crimson-eye), #ff8a9a);
  box-shadow: 0 0 10px var(--crimson-glow);
}

/* ==========================================================================
   CAPTAIN'S LOG / DISPATCHES
   ========================================================================== */
.logs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.log-date {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--gold-primary);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.log-heading {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
  transition: var(--transition-smooth);
}

.gilded-card:hover .log-heading {
  color: var(--gold-light);
}

.log-snippet {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

.log-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-cinzel);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-primary);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.log-read-more:hover {
  color: #fff;
  transform: translateX(4px);
}

/* ==========================================================================
   CONTACT SECTION / DISPATCH THE BOTTLE
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.contact-info-deck h3 {
  font-size: 1.85rem;
  margin-bottom: 1rem;
}

.contact-info-deck p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.channel-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text-parchment);
  padding: 0.85rem 1.2rem;
  background: rgba(14, 23, 40, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  transition: var(--transition-smooth);
}

.channel-item:hover {
  background: rgba(22, 38, 64, 0.7);
  border-color: var(--gold-primary);
  color: var(--gold-light);
  transform: translateX(6px);
}

.channel-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(229, 185, 92, 0.1);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  font-size: 1.1rem;
}

.channel-text .label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.channel-text .val {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Contact Form */
.parchment-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-family: var(--font-cinzel);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.08em;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: rgba(6, 10, 18, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px var(--gold-glow);
  background: rgba(10, 17, 30, 0.95);
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
  border-top: 1px solid rgba(229, 185, 92, 0.18);
  background: #020408;
  padding: 4.5rem 0 2rem;
  position: relative;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 360px;
  line-height: 1.6;
}

.footer-links-col h5 {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  color: var(--gold-light);
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition-smooth);
}

.footer-links-list a:hover {
  color: var(--gold-primary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ==========================================================================
   MODAL POPUP
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 6, 10, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal-backdrop.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.modal-dialog {
  max-width: 750px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.96);
  transition: var(--transition-smooth);
}

.modal-backdrop.active .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(22, 38, 64, 0.7);
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition-smooth);
  z-index: 10;
}

.modal-close-btn:hover {
  background: var(--crimson-eye);
  color: #fff;
  border-color: var(--crimson-eye);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #0d172a;
  border: 1px solid var(--gold-primary);
  color: var(--text-primary);
  padding: 1rem 1.5rem;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px var(--gold-glow);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition-smooth);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   CURSED MODE (RED EYE LIGHTNING STATE)
   ========================================================================== */
body.cursed-mode {
  --gold-primary: #ff2a4b;
  --gold-light: #ffb8c4;
  --gold-glow: rgba(255, 42, 75, 0.6);
  --border-gold: rgba(255, 42, 75, 0.45);
}

body.cursed-mode .hero-emblem-img {
  filter: drop-shadow(0 0 30px #ff002f);
  animation: cursed-vibrate 0.25s infinite;
}

@keyframes cursed-vibrate {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-1px, 1px); }
  50% { transform: translate(1px, -1px); }
  75% { transform: translate(-1px, -1px); }
  100% { transform: translate(1px, 1px); }
}

/* ==========================================================================
   PROJECT MANAGEMENT & VESSEL COMMISSIONING
   ========================================================================== */
.btn-delete-vessel {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(185, 28, 28, 0.85);
  border: 1px solid var(--crimson-eye);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.82rem;
  transition: var(--transition-smooth);
  z-index: 10;
}

.btn-delete-vessel:hover {
  background: #ff002b;
  transform: scale(1.1);
  box-shadow: 0 0 15px var(--crimson-glow);
}

.btn-add-vessel {
  background: linear-gradient(135deg, #1b382b, #0c2017);
  border: 1px solid #34d399;
  color: #a7f3d0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(52, 211, 153, 0.2);
}

.btn-add-vessel:hover {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #04140c;
  box-shadow: 0 0 25px rgba(52, 211, 153, 0.6);
  border-color: #6ee7b7;
}

.image-preview-box {
  width: 100%;
  height: 140px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px dashed var(--gold-primary);
  margin-top: 0.5rem;
  display: none;
}

pre.code-export-box {
  background: #050912;
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  padding: 1rem;
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  max-height: 240px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
  .hero-stats-deck {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-box:nth-child(2)::after {
    display: none;
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(5, 8, 17, 0.98);
    flex-direction: column;
    padding: 2.5rem 1.5rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-gold);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease-in-out;
  }
  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  .mobile-nav-toggle {
    display: block;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .armada-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   OFFICIAL SOCIAL & SIGNALS POPUP MODAL
   ========================================================================== */
.social-popup-dialog {
  max-width: 660px;
  width: 95%;
  background: radial-gradient(circle at 50% 0%, #101c36 0%, #080f1d 55%, #03060b 100%);
  border: 1px solid var(--border-gold);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.95), 0 0 35px var(--gold-glow);
  padding: 2.2rem 2rem;
  border-radius: 12px;
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
}

.social-popup-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.social-popup-avatar-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.social-popup-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 16px var(--gold-glow);
}

.social-popup-avatar-wrap .online-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 13px;
  height: 13px;
  background: #10b981;
  border: 2px solid #070d18;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

.social-popup-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  color: var(--gold-primary);
  letter-spacing: 1.5px;
  margin-bottom: 0.35rem;
  background: rgba(229, 185, 92, 0.1);
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  border: 1px solid rgba(229, 185, 92, 0.28);
}

.social-popup-title {
  font-size: 1.45rem;
  margin: 0 0 0.25rem 0;
  line-height: 1.25;
}

.social-popup-subtitle {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.social-popup-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
  margin: 1.25rem 0;
}

.social-group-section {
  margin-bottom: 1.25rem;
}

.social-group-title {
  font-size: 0.8rem;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.social-links-grid {
  display: grid;
  gap: 0.75rem;
}

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

.dual-grid {
  grid-template-columns: repeat(2, 1fr);
}

.social-popup-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(13, 22, 38, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.75rem 0.95rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.social-popup-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, var(--hover-glow, rgba(229, 185, 92, 0.15)), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.social-popup-card:hover {
  transform: translateY(-2px);
  border-color: var(--hover-border, var(--gold-primary));
  box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.8), 0 0 15px var(--hover-glow, var(--gold-glow));
}

.social-popup-card:hover::before {
  opacity: 1;
}

.social-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.social-popup-card:hover .social-card-icon {
  transform: scale(1.08);
}

.fb-card { --hover-border: #1877f2; --hover-glow: rgba(24, 119, 242, 0.3); }
.fb-icon { background: rgba(24, 119, 242, 0.16); color: #1877f2; border: 1px solid rgba(24, 119, 242, 0.38); }

.fb-page-card { --hover-border: #2e89ff; --hover-glow: rgba(46, 137, 255, 0.3); }

.insta-card { --hover-border: #e1306c; --hover-glow: rgba(225, 48, 108, 0.3); }
.insta-icon { background: rgba(225, 48, 108, 0.16); color: #e1306c; border: 1px solid rgba(225, 48, 108, 0.38); }

.wa-card { --hover-border: #25d366; --hover-glow: rgba(37, 211, 102, 0.3); }
.wa-icon { background: rgba(37, 211, 102, 0.16); color: #25d366; border: 1px solid rgba(37, 211, 102, 0.38); }

.tg-card { --hover-border: #229ed9; --hover-glow: rgba(34, 158, 217, 0.3); }
.tg-icon { background: rgba(34, 158, 217, 0.16); color: #229ed9; border: 1px solid rgba(34, 158, 217, 0.38); }

.social-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.social-card-name {
  font-family: var(--font-cinzel);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-card-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.social-card-action {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s;
}

.social-popup-card:hover .social-card-action {
  opacity: 1;
  transform: translateX(2px);
}

.social-popup-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 0.75rem;
}

@media (max-width: 650px) {
  .main-accounts-grid,
  .dual-grid {
    grid-template-columns: 1fr;
  }
  .social-popup-header {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  .social-popup-dialog {
    padding: 1.5rem 1.15rem;
  }
}

