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

:root {
  --bg-primary: #0d0d0f;
  --bg-secondary: #141416;
  --bg-card: #1a1a1e;
  --bg-hover: #222226;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a5;
  --text-muted: #555;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.3);
  --border: #2a2a2e;
  --success: #10b981;
  --error: #ef4444;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-card: 54px; /* iOS-style super rounded corners */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Responsive sizing */
  --header-height: 64px;
  --gallery-active-size: 340px;
  --gallery-near-size: 240px;
  --gallery-far-size: 180px;
  --gallery-gap: 35px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for mobile */
  overflow-x: hidden;
}

.app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: transparent;
  position: relative;
  overflow: hidden;
  /* Ensure content is above the ambient glow */
  isolation: isolate;
}

/* Ambient light glow effect - centered on card, spreads to entire page */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: #0a0a0c;
  overflow: hidden;
}

/* Primary glow - centered on card position (slightly left of center to account for sidebar) */
.ambient-glow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 40%;
  width: 140%;
  height: 140%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse 50% 50% at center, var(--glow-color, rgba(40, 40, 60, 0.6)) 0%, transparent 70%);
  opacity: 1;
  transition: background 1s cubic-bezier(0.4, 0, 0.2, 1);
  filter: blur(80px);
}

/* Secondary glow - larger spread for ambient fill */
.ambient-glow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 40%;
  width: 200%;
  height: 200%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse 60% 60% at center, var(--glow-color-secondary, rgba(30, 30, 50, 0.4)) 0%, transparent 60%);
  opacity: 1;
  transition: background 1s cubic-bezier(0.4, 0, 0.2, 1);
  filter: blur(120px);
}

/* Tertiary glow layer - softest, widest spread */
.ambient-glow-tertiary {
  position: absolute;
  top: 50%;
  left: 40%;
  width: 250%;
  height: 250%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse 70% 70% at center, var(--glow-color, rgba(40, 40, 60, 0.25)) 0%, transparent 50%);
  opacity: 1;
  transition: background 1s cubic-bezier(0.4, 0, 0.2, 1);
  filter: blur(150px);
  pointer-events: none;
}

/* Header - fully transparent, floating above glow */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  padding: 0 32px;
  display: flex;
  align-items: center;
  background: transparent;
  z-index: 100;
  /* Subtle frosted effect on scroll - optional */
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}

.header .logo {
  flex-shrink: 0;
}

.header .nav {
  margin-left: 32px;
}

.header .header-actions {
  margin-left: auto;
  margin-right: calc(280px - 32px + 24px); /* Align with sidebar inner edge */
}

/* Main content above ambient glow */
.main {
  position: relative;
  z-index: 2;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  position: relative;
  background: linear-gradient(135deg, #fff 0%, #a8a8a8 50%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Vinyl Record Music Button */
.btn-sound {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1a1a1a 0%, #0a0a0a 100%);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Vinyl grooves effect */
.btn-sound::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: 
    repeating-radial-gradient(
      circle at center,
      transparent 0px,
      transparent 2px,
      rgba(255, 255, 255, 0.03) 2px,
      rgba(255, 255, 255, 0.03) 3px
    );
  pointer-events: none;
  transition: all 0.4s ease;
}

/* Frosted glass outer ring */
.btn-sound::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0.1) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: -1;
  opacity: 0.8;
  transition: all 0.3s ease;
}

/* Center label */
.btn-sound svg {
  display: none;
}

.btn-sound .vinyl-center {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(145deg, #333 0%, #1a1a1a 100%);
  border: 2px solid rgba(255, 255, 255, 0.15);
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.btn-sound .vinyl-center::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

/* Hover state */
.btn-sound:hover {
  transform: scale(1.05);
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-sound:hover::after {
  opacity: 1;
  inset: -4px;
}

.btn-sound:hover .vinyl-center {
  border-color: rgba(255, 255, 255, 0.25);
}

/* Playing state - vinyl spins */
.btn-sound.playing {
  animation: vinylSpin 3s linear infinite;
}

.btn-sound.playing::after {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.3) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(99, 102, 241, 0.2) 100%
  );
  opacity: 1;
}

.btn-sound.playing .vinyl-center {
  background: linear-gradient(145deg, var(--accent) 0%, #4f46e5 100%);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-sound.playing .vinyl-center::after {
  background: rgba(255, 255, 255, 0.6);
}

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

/* Pause on hover when playing */
.btn-sound.playing:hover {
  animation-play-state: paused;
  transform: rotate(0deg) scale(1.05);
}

/* Hide default icons */
.btn-sound .icon-sound-on,
.btn-sound .icon-sound-off {
  display: none;
}

/* Main Layout */
.main {
  flex: 1;
  display: flex;
  padding-top: var(--header-height);
  min-height: 100vh;
  min-height: 100dvh;
}

/* Gallery Section */
.gallery-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 32px 0;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.gallery-header {
  padding: 0 48px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* Gallery Container */
.gallery-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 450px;
  padding: 0 20px;
}

.gallery-track {
  width: 100%;
  height: 100%;
  position: relative;
}

/* Gallery Item */
.gallery-item {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--gallery-active-size);
  height: var(--gallery-active-size);
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  background: var(--bg-card);
  will-change: transform, width, height;
  transform: translate(-50%, -50%);
}

/* Frosted glass frame effect - elegant border glow */
.gallery-item::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-card) + 2px);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.03) 30%,
    rgba(255, 255, 255, 0.05) 70%,
    rgba(255, 255, 255, 0.12) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 2px;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.85) 100%);
  z-index: 1;
  opacity: 0;
  transition: var(--transition);
}

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

.gallery-item-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

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

.gallery-item-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 2;
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-item-info {
  transform: translateY(0);
  opacity: 1;
}

.gallery-item-department {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  font-weight: 400;
}

.gallery-item-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Gallery Item States */
.gallery-item.active {
  z-index: 10;
  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.5),
    0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Frosted glass frame for active card - elegant outer glow */
.gallery-item.active::after {
  opacity: 1;
  inset: -8px;
  border-radius: calc(var(--radius-card) + 8px);
  padding: 8px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.03) 25%,
    rgba(255, 255, 255, 0.02) 50%,
    rgba(255, 255, 255, 0.05) 75%,
    rgba(255, 255, 255, 0.15) 100%
  );
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
}

/* Subtle inner glow on active card */
.gallery-item.active::before {
  box-shadow: inset 0 0 60px rgba(255, 255, 255, 0.03);
}

.gallery-item.active::before {
  opacity: 1;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.85) 100%);
}

.gallery-item.active .gallery-item-info {
  transform: translateY(0);
  opacity: 1;
}

.gallery-item.prev,
.gallery-item.next {
  opacity: 0.8;
  filter: brightness(0.75) saturate(0.9);
  border-radius: calc(var(--radius-card) * 0.85);
}

.gallery-item.prev::after,
.gallery-item.next::after {
  opacity: 0.3;
  inset: -3px;
  border-radius: calc(var(--radius-card) * 0.85 + 3px);
  padding: 3px;
}

.gallery-item.far-prev,
.gallery-item.far-next {
  opacity: 0.4;
  filter: brightness(0.55) saturate(0.7);
  border-radius: calc(var(--radius-card) * 0.7);
}

.gallery-item.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

/* Gallery Navigation - subtle glass buttons */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 20;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.gallery-nav:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-50%) scale(1.05);
}

.gallery-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.gallery-nav svg {
  width: 24px;
  height: 24px;
}

.gallery-nav-prev {
  left: 20px;
}

.gallery-nav-next {
  right: 20px;
}

/* Gallery Dots - subtle pill indicator */
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 24px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-dot:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.1);
}

.gallery-dot.active {
  background: rgba(255, 255, 255, 0.9);
  width: 24px;
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

/* Gallery Info */
.gallery-info {
  text-align: center;
  margin-top: 28px;
  min-height: 90px;
  padding: 0 20px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-info .job-department {
  font-size: 0.7rem;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 10px;
}

.gallery-info .job-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.gallery-info .job-meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Sidebar - fully transparent, glow penetrates through */
.sidebar {
  width: 280px;
  padding: 32px 24px;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 28px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.filter-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.filter-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-select {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.filter-select:hover {
  background: rgba(255, 255, 255, 0.12);
}

.filter-select:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3);
}

/* Contact Card - subtle glass effect */
.contact-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.contact-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.contact-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.email-link {
  display: block;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 12px;
  transition: var(--transition);
  word-break: break-all;
}

.email-link:hover {
  color: var(--accent-light);
}

.email-tip {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.email-item {
  margin-bottom: 12px;
}

.email-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* Page Section */
.page-section {
  animation: fadeIn 0.4s ease;
}

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

/* About Section */
.about-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px;
  max-width: 720px;
  margin: 0 auto;
  min-height: calc(100vh - 80px);
}

.about-content {
  max-width: 600px;
  width: 100%;
}

.about-hero {
  margin-bottom: 56px;
}

.about-title {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, #a8a8a8 50%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.2);
  }
}

.about-text p {
  font-size: 1.125rem;
  line-height: 2;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
  text-align: left;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* Responsive for About */
@media (max-width: 767px) {
  .about-section {
    padding: 32px 24px;
    min-height: calc(100vh - 60px);
  }
  
  .about-hero {
    margin-bottom: 40px;
  }
  
  .about-title {
    font-size: 2.5rem;
  }
  
  .about-text p {
    font-size: 1rem;
    line-height: 1.9;
  }
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  max-height: 90dvh;
  background: linear-gradient(180deg, #1a1a1e 0%, #141416 100%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transform: translateY(30px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

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

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.modal-close svg {
  width: 20px;
  height: 20px;
}

.modal-body {
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  padding: 40px;
  -webkit-overflow-scrolling: touch;
}

/* Job Detail */
.job-detail {
  margin-bottom: 40px;
}

.job-detail-header {
  display: flex;
  gap: 28px;
  margin-bottom: 36px;
}

.job-detail-cover {
  width: 180px;
  height: 180px;
  border-radius: var(--radius-card);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.job-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.job-detail-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.job-tag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-light);
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.job-detail-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  word-break: break-word;
}

.job-detail-meta {
  display: flex;
  gap: 24px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  flex-wrap: wrap;
}

.job-detail-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.job-detail-meta svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.job-detail-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.job-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.job-section p,
.job-section ul {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.9;
}

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

.job-section ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
}

.job-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Apply Section */
.apply-section {
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.apply-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 28px;
}

.apply-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group label .required {
  color: var(--error);
}

.form-group input {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 16px; /* Prevents zoom on iOS */
  transition: var(--transition);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-group input:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* File Upload */
.file-upload {
  position: relative;
  border: 2px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.file-upload:hover {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.05);
}

.file-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-upload-content {
  padding: 36px;
  text-align: center;
  color: var(--text-secondary);
}

.file-upload-content svg {
  color: var(--text-muted);
  margin-bottom: 14px;
}

.file-upload-content p {
  font-size: 0.9375rem;
  margin-bottom: 6px;
}

.file-upload-content span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.file-selected {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-sm);
}

.file-selected svg {
  color: var(--accent);
  flex-shrink: 0;
}

.file-name {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-remove {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
  border-radius: 50%;
  flex-shrink: 0;
}

.file-remove:hover {
  color: var(--error);
  background: rgba(239, 68, 68, 0.1);
}

/* Submit Button */
.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 12px;
  -webkit-tap-highlight-color: transparent;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--accent-glow);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  background: rgba(26, 26, 30, 0.95);
  border: 1px solid var(--success);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  z-index: 300;
  opacity: 0;
  transition: var(--transition);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  max-width: calc(100% - 40px);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast svg {
  color: var(--success);
  flex-shrink: 0;
}

.toast span {
  font-size: 0.9375rem;
  color: var(--text-primary);
}

/* ==================== */
/* RESPONSIVE DESIGN    */
/* ==================== */

/* Large Desktop (>1280px) */
@media (min-width: 1281px) {
  :root {
    --gallery-active-size: 360px;
    --gallery-near-size: 260px;
    --gallery-far-size: 200px;
  }
}

/* Desktop (1024px - 1280px) */
@media (max-width: 1280px) {
  :root {
    --gallery-active-size: 320px;
    --gallery-near-size: 220px;
    --gallery-far-size: 160px;
    --gallery-gap: 30px;
  }
}

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  :root {
    --gallery-active-size: 280px;
    --gallery-near-size: 200px;
    --gallery-far-size: 150px;
    --gallery-gap: 25px;
  }
  
  .header .header-actions {
    margin-right: 0;
  }
  
  .main {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 24px;
    gap: 20px;
  }
  
  .filter-section {
    flex: 1;
    min-width: 200px;
  }
  
  .contact-card {
    flex: 1;
    min-width: 200px;
  }
  
  .gallery-section {
    padding: 24px 0;
  }
  
  .gallery-container {
    min-height: 400px;
  }
  
  .gallery-header {
    padding: 0 24px;
  }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  :root {
    --header-height: 56px;
    --gallery-active-size: 220px;
    --gallery-near-size: 150px;
    --gallery-far-size: 0px;
    --gallery-gap: 16px;
  }
  
  .header {
    padding: 0 16px;
  }
  
  .header .header-actions {
    margin-right: 0;
  }
  
  .logo-text {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
  }
  
  .logo-icon {
    width: 32px;
    height: 32px;
  }
  
  .nav {
    display: none;
  }
  
  .btn-sound {
    width: 38px;
    height: 38px;
  }
  
  .btn-sound .vinyl-center {
    width: 12px;
    height: 12px;
  }
  
  .btn-sound .vinyl-center::after {
    width: 3px;
    height: 3px;
  }
  
  .gallery-section {
    padding: 16px 0;
  }
  
  .gallery-header {
    padding: 0 16px;
    margin-bottom: 12px;
  }
  
  .section-title {
    font-size: 0.7rem;
  }
  
  .gallery-container {
    min-height: 320px;
    padding: 0 10px;
  }
  
  .gallery-nav {
    width: 36px;
    height: 36px;
  }
  
  .gallery-nav svg {
    width: 20px;
    height: 20px;
  }
  
  .gallery-nav-prev {
    left: 8px;
  }
  
  .gallery-nav-next {
    right: 8px;
  }
  
  .gallery-item.far-prev,
  .gallery-item.far-next {
    display: none;
  }
  
  .gallery-dots {
    margin-top: 20px;
    padding: 10px 16px;
    gap: 8px;
  }
  
  .gallery-dot {
    width: 6px;
    height: 6px;
  }
  
  .gallery-info {
    margin-top: 20px;
    min-height: 80px;
    padding: 0 16px;
  }
  
  .gallery-info .job-department {
    font-size: 0.65rem;
  }
  
  .gallery-info .job-title {
    font-size: 1.35rem;
  }
  
  .gallery-info .job-meta {
    font-size: 0.8rem;
  }
  
  .sidebar {
    flex-direction: column;
    padding: 20px 16px;
  }
  
  .filter-section {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .filter-title {
    width: 100%;
  }
  
  .filter-group {
    flex: 1;
    min-width: 140px;
  }
  
  /* Modal Mobile */
  .modal {
    padding: 0;
    align-items: flex-end;
  }
  
  .modal-content {
    max-height: 95vh;
    max-height: 95dvh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
  
  .modal-body {
    padding: 24px 20px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
  
  .modal-close {
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
  }
  
  .job-detail-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }
  
  .job-detail-cover {
    width: 140px;
    height: 140px;
  }
  
  .job-tag {
    margin-left: auto;
    margin-right: auto;
  }
  
  .job-detail-title {
    font-size: 1.5rem;
  }
  
  .job-detail-meta {
    justify-content: center;
    gap: 16px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .file-upload-content {
    padding: 24px 16px;
  }
  
  .file-upload-content svg {
    width: 28px;
    height: 28px;
  }
  
  .file-upload-content p {
    font-size: 0.875rem;
  }
  
  .btn-submit {
    padding: 14px 24px;
    font-size: 0.9375rem;
  }
  
  .toast {
    bottom: calc(20px + env(safe-area-inset-bottom));
    padding: 14px 20px;
  }
  
  .toast span {
    font-size: 0.875rem;
  }
}

/* Small Mobile (< 480px) */
@media (max-width: 479px) {
  :root {
    --gallery-active-size: 200px;
    --gallery-near-size: 120px;
    --gallery-gap: 12px;
  }
  
  .logo {
    gap: 10px;
  }
  
  .logo-text {
    font-size: 0.8rem;
  }
  
  .logo-icon {
    width: 28px;
    height: 28px;
  }
  
  .gallery-container {
    min-height: 280px;
  }
  
  .gallery-nav {
    width: 32px;
    height: 32px;
  }
  
  .gallery-nav svg {
    width: 18px;
    height: 18px;
  }
  
  .gallery-nav-prev {
    left: 4px;
  }
  
  .gallery-nav-next {
    right: 4px;
  }
  
  .gallery-info .job-title {
    font-size: 1.2rem;
  }
  
  .filter-group {
    min-width: 100%;
  }
  
  .job-detail-cover {
    width: 120px;
    height: 120px;
  }
  
  .job-detail-title {
    font-size: 1.3rem;
  }
  
  .job-detail-meta {
    flex-direction: column;
    gap: 8px;
  }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .gallery-container {
    min-height: 250px;
  }
  
  :root {
    --gallery-active-size: 180px;
    --gallery-near-size: 130px;
  }
  
  .gallery-info {
    min-height: 60px;
    margin-top: 12px;
  }
  
  .gallery-dots {
    margin-top: 12px;
  }
}

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

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Selection */
::selection {
  background: var(--accent);
  color: white;
}

/* Safe area for iOS */
@supports (padding: max(0px)) {
  .header {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  
  .sidebar {
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
}
