/* ═══════════════════════════════════════
   CAREER MARINE FIELDS — Oceanic Theme
   ═══════════════════════════════════════ */

:root {
  --navy-deep: #060e1a;
  --navy: #0a1628;
  --navy-card: #0f1f36;
  --navy-light: #152642;
  --ocean: #0077b6;
  --ocean-bright: #0096d6;
  --teal: #00b4d8;
  --cyan: #48cae4;
  --sky: #90e0ef;
  --white: #e8f4f8;
  --white-pure: #ffffff;
  --gold: #f0c060;
  --coral: #ff6b6b;
  --text: #c8dbe8;
  --text-dim: #6b8aaa;
  --glass: rgba(15, 31, 54, 0.7);
  --glass-border: rgba(0, 180, 216, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--navy-deep);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Wave background */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(0, 180, 216, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(0, 119, 182, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, var(--navy-deep) 0%, #0a1a30 100%);
  z-index: -1;
  pointer-events: none;
}

/* ═══ NAV ═══ */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 180, 216, 0.1);
  padding: 0 2rem;
}

.nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white-pure);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-icon {
  font-size: 1.6rem;
  filter: drop-shadow(0 0 8px rgba(0, 180, 216, 0.5));
}

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

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

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

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

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white-pure);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ═══ HERO ═══ */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.08) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 119, 182, 0.06) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  background: rgba(0, 180, 216, 0.1);
  border: 1px solid rgba(0, 180, 216, 0.25);
  color: var(--cyan);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--white-pure) 0%, var(--cyan) 50%, var(--ocean) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat .num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--cyan);
  display: block;
}

.hero-stat .label {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--ocean), var(--teal));
  color: var(--white-pure);
  box-shadow: 0 4px 20px rgba(0, 119, 182, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 119, 182, 0.6);
}

.btn-outline {
  border: 2px solid rgba(0, 180, 216, 0.4);
  color: var(--cyan);
  margin-left: 1rem;
}

.btn-outline:hover {
  background: rgba(0, 180, 216, 0.1);
  border-color: var(--cyan);
}

/* ═══ SECTION ═══ */
.section {
  padding: 5rem 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--white-pure);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ═══ CARDS ═══ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

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

.card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  display: block;
  position: relative;
  overflow: hidden;
}

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

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 180, 216, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

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

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.card h3 {
  color: var(--white-pure);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}

.card-meta {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(0, 180, 216, 0.1);
  color: var(--cyan);
}

.tag.gold {
  background: rgba(240, 192, 96, 0.15);
  color: var(--gold);
}

.tag.green {
  background: rgba(72, 202, 228, 0.15);
  color: var(--sky);
}

/* ═══ INDUSTRY CARDS ═══ */
.industry-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.industry-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 180, 216, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.industry-icon {
  font-size: 2.8rem;
  flex-shrink: 0;
}

.industry-card h3 {
  color: var(--white-pure);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.industry-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.6;
}

.industry-card .stat {
  font-size: 0.8rem;
  color: var(--cyan);
  margin-top: 0.5rem;
}

/* ═══ JOB DETAIL ═══ */
.job-detail {
  max-width: 900px;
  margin: 0 auto;
}

.job-header {
  text-align: center;
  margin-bottom: 3rem;
}

.job-header h1 {
  font-size: 2.5rem;
  color: var(--white-pure);
  margin-bottom: 1rem;
}

.job-header .meta-line {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.meta-pill {
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
}

.meta-pill.salary {
  background: rgba(240, 192, 96, 0.15);
  color: var(--gold);
}

.meta-pill.type {
  background: rgba(72, 202, 228, 0.15);
  color: var(--sky);
}

.meta-pill.outlook {
  background: rgba(0, 180, 216, 0.12);
  color: var(--cyan);
}

.detail-section {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.detail-section h3 {
  color: var(--cyan);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detail-section ul {
  list-style: none;
  padding-left: 0;
}

.detail-section li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.detail-section li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--teal);
}

/* ═══ SEARCH ═══ */
.search-bar {
  max-width: 600px;
  margin: 0 auto 3rem;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3rem;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--white-pure);
  font-size: 1rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 20px rgba(0, 180, 216, 0.15);
}

.search-bar input::placeholder {
  color: var(--text-dim);
}

.search-bar .search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: var(--text-dim);
}

.filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  justify-content: center;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(0, 180, 216, 0.15);
  border-color: var(--teal);
  color: var(--cyan);
}

/* ═══ ABOUT ═══ */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.about-card {
  text-align: center;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
}

.about-card .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.about-card h3 {
  color: var(--white-pure);
  margin-bottom: 0.5rem;
}

.about-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ═══ FOOTER ═══ */
footer {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid rgba(0, 180, 216, 0.08);
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ═══ LOADING ═══ */
.loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-dim);
}

.loading .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--glass-border);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ═══ BACK BUTTON ═══ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  transition: var(--transition);
}

.back-link:hover {
  color: var(--cyan);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(6, 14, 26, 0.98);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--glass-border);
  }

  .nav-links.open {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

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

  .hero-stats {
    gap: 1.5rem;
  }

  .hero-stat .num {
    font-size: 1.6rem;
  }

  .btn-outline {
    margin-left: 0;
    margin-top: 1rem;
  }

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

  .section {
    padding: 3rem 1.25rem;
  }

  .job-header h1 {
    font-size: 1.8rem;
  }
}

/* ═══ SCROLLBAR ═══ */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--navy-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ocean);
}

/* ═══ FADE IN ANIMATION ═══ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
