/* Base */
:root {
  --bg: #0a0a0a;
  --bg-elev: #111111;
  --card: #1a1a1a;
  --text: #ffffff;
  --muted: #a0a0a0;
  --brand: #E70104;
  --brand-2: #B80103;
  --border: #2a2a2a;
  --tag: #1f1f1f;
  --tag-text: #ff4444;
  --shadow: 0 4px 20px rgba(0,0,0,0.3);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.4);
}

* { box-sizing: border-box; }
html, body { padding: 0; margin: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg) url('./Background.png') no-repeat center center fixed;
  background-size: cover;
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.bg-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: rgba(10, 10, 10, 0.15);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  height: 80px;
}

.brand { 
  display: inline-flex; 
  align-items: center; 
  gap: 12px; 
  text-decoration: none; 
  color: var(--text); 
  font-weight: 700;
  font-size: 24px;
}

.brand .brand-mark { 
  color: var(--brand); 
  font-size: 28px;
  filter: drop-shadow(0 0 20px rgba(231, 1, 4, 0.4));
  background: #000000;
  border-radius: 4px;
  padding: 4px;
}

.brand .brand-subtle { 
  color: var(--muted); 
  font-weight: 400; 
  font-size: 16px;
  letter-spacing: 0.5px;
}

.nav { 
  display: flex; 
  gap: 32px; 
  align-items: center;
}

.nav-link { 
  color: var(--muted); 
  text-decoration: none; 
  font-weight: 500;
  font-size: 16px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover { 
  color: var(--text); 
}

/* Hero */
.hero { 
  padding: 80px 0 60px; 
  text-align: center;
}

.hero h1 { 
  font-size: clamp(40px, 6vw, 64px); 
  line-height: 1.1; 
  margin: 0 0 24px; 
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-sub { 
  color: var(--muted); 
  max-width: 800px; 
  margin: 0 auto 40px; 
  font-size: 20px;
  line-height: 1.5;
}

.hero-ctas { 
  display: flex; 
  gap: 16px; 
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.button { 
  display: inline-block; 
  padding: 14px 28px; 
  border-radius: 8px; 
  text-decoration: none; 
  font-weight: 600; 
  font-size: 16px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.button.primary { 
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); 
  color: #000; 
  box-shadow: 0 4px 20px rgba(231, 1, 4, 0.3);
}

.button.ghost { 
  border: 2px solid var(--border); 
  color: var(--text); 
  background: transparent;
}

.button:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 8px 30px rgba(231, 1, 4, 0.4);
}

.button.ghost:hover {
  border-color: var(--brand);
  background: rgba(231, 1, 4, 0.05);
}

/* Sections */
.section-head { 
  text-align: center;
  margin-bottom: 48px;
}

.section-head h2 { 
  font-size: 36px; 
  margin: 0 0 16px; 
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-head .muted { 
  margin: 0; 
  font-size: 18px;
  color: var(--muted);
}

/* Roles */
.roles { 
  padding: 40px 0 80px; 
}

.job-grid { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 24px; 
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 900px) { 
  .job-grid { 
    grid-template-columns: 1fr 1fr; 
  } 
}

.card { 
  background: rgba(26, 26, 26, 0.95); 
  border: 1px solid var(--border); 
  border-radius: 12px; 
  padding: 32px; 
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

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

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--brand);
}

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

.job-card h3 { 
  margin: 0 0 16px; 
  font-size: 22px; 
  font-weight: 600;
}

.job-card h3 a { 
  color: var(--text); 
  text-decoration: none;
  transition: color 0.2s ease;
}

.job-card h3 a:hover { 
  color: var(--brand); 
}

.job-meta { 
  color: var(--muted); 
  font-size: 14px; 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  margin-bottom: 16px;
  font-weight: 500;
}

.job-desc { 
  margin: 0 0 20px; 
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

.tags { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 8px; 
  margin-bottom: 24px; 
}

.tag { 
  display: inline-flex; 
  align-items: center; 
  gap: 6px; 
  padding: 6px 12px; 
  border-radius: 20px; 
  background: var(--tag); 
  color: var(--tag-text); 
  border: 1px solid rgba(231, 1, 4, 0.2); 
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.tag:hover {
  background: rgba(231, 1, 4, 0.1);
  border-color: var(--brand);
}

.tag::before { 
  content: ''; 
  width: 6px; 
  height: 6px; 
  border-radius: 50%; 
  background: var(--brand);
  box-shadow: 0 0 8px rgba(231, 1, 4, 0.6);
}

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

/* Center submit resume buttons for sections without job cards */
.submit-section .job-actions {
  justify-content: center;
}

.divider { 
  border: none; 
  border-top: 1px solid var(--border); 
  margin: 20px 0; 
}

.job-body { 
  color: var(--text);
  line-height: 1.7;
}

.job-body h4, .job-body h5 { 
  margin: 24px 0 12px; 
  color: var(--text);
  font-weight: 600;
}

.job-body ul { 
  padding-left: 24px; 
  margin: 12px 0 20px; 
}

.job-body li { 
  margin: 8px 0; 
  color: var(--muted);
}

/* Values */
.values { 
  padding: 40px 0 80px; 
}

/* Email Instructions */
.email-instructions {
  margin-top: 32px;
}

.email-instructions .card-header {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.email-instructions .card-header h3 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
}

.email-instructions .card-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.email-instructions .card-content h4 {
  margin: 0 0 12px 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}

.email-instructions .card-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.email-instructions .card-content strong {
  color: var(--brand);
}

.email-instructions .card-footer {
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.email-instructions .card-footer p {
  margin: 0 0 12px 0;
  font-weight: 600;
  color: var(--text);
}

.email-instructions .card-footer ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.6;
}

.email-instructions .card-footer li {
  margin: 8px 0;
}

@media (max-width: 768px) {
  .email-instructions .card-content {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.values-grid { 
  list-style: none; 
  padding: 0; 
  margin: 0; 
  display: grid; 
  gap: 24px; 
  grid-template-columns: 1fr; 
}

@media (min-width: 800px) { 
  .values-grid { 
    grid-template-columns: 1fr 1fr 1fr; 
  } 
}

.values .card h3 { 
  margin: 0 0 12px; 
  color: var(--text);
}

.values .card p { 
  margin: 0; 
  color: var(--muted);
}

/* Footer */
.site-footer { 
  border-top: 1px solid var(--border); 
  background: rgba(17, 17, 17, 0.95);
  padding: 20px 0;
  backdrop-filter: blur(10px);
}

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

.small { 
  font-size: 14px; 
}

.muted { 
  color: var(--muted); 
}

/* Focus */
:focus { 
  outline: 2px solid var(--brand); 
  outline-offset: 2px; 
}

/* Internship page styles */
.internship-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 24px 0;
}

@media (min-width: 768px) {
  .internship-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.internship-type {
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  transition: all 0.2s ease;
}

.internship-type:hover {
  border-color: var(--brand);
  background: rgba(26, 26, 26, 0.9);
}

.internship-type h5 {
  margin: 0 0 12px 0;
  color: var(--brand);
  font-size: 18px;
  font-weight: 600;
}

.internship-type p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Anchor offset for deep links */
.job-card { 
  scroll-margin-top: 100px; 
}

/* Deep-link highlight */
.job-card:target {
  border-color: var(--brand);
  box-shadow: 0 8px 30px rgba(255, 68, 68, 0.2), var(--shadow);
}

/* Job detail page */
.job-detail { 
  padding: 40px 0 80px;
}

.job-detail .job-title { 
  margin: 24px 0 16px; 
  font-size: clamp(32px, 5vw, 48px); 
  font-weight: 700;
  letter-spacing: -0.01em;
}

.job-detail .breadcrumbs { 
  margin-top: 24px; 
}

.breadcrumbs a { 
  color: var(--muted); 
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover { 
  color: var(--text); 
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  
  /* Header mobile styles */
  .header-inner {
    height: 70px;
    flex-wrap: wrap;
  }
  
  .brand {
    font-size: 20px;
    gap: 8px;
  }
  
  .brand .brand-mark {
    font-size: 24px;
    padding: 3px;
  }
  
  .brand .brand-subtle {
    font-size: 14px;
  }
  
  .nav {
    gap: 20px;
  }
  
  .nav-link {
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
  }
  
  .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  
  .hero {
    padding: 60px 0 40px;
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  .hero-sub {
    font-size: 18px;
  }
  
  .hero-ctas {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  
  .button {
    width: 100%;
    max-width: 300px;
    text-align: center;
    padding: 16px 24px;
    font-size: 16px;
  }
  
  .card {
    padding: 24px;
  }
  
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  
  /* Job actions mobile optimization */
  .job-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .job-actions .button {
    max-width: none;
  }
  
  /* Tags mobile optimization */
  .tags {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .tag {
    font-size: 12px;
    padding: 6px 12px;
  }
  
  /* Job meta mobile optimization */
  .job-meta {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .job-meta .dot {
    display: none;
  }
  
  /* Job description mobile optimization */
  .job-desc {
    font-size: 14px;
    line-height: 1.5;
  }
  
  /* Section spacing mobile optimization */
  .roles {
    padding: 30px 0 60px;
  }
  
  .section-head {
    margin-bottom: 32px;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .header-inner {
    height: 60px;
  }
  
  .brand {
    font-size: 18px;
    gap: 6px;
  }
  
  .brand .brand-mark {
    font-size: 20px;
    padding: 2px;
  }
  
  .brand .brand-subtle {
    font-size: 12px;
  }
  
  .nav {
    gap: 12px;
  }
  
  .nav-link {
    font-size: 13px;
    padding: 6px 10px;
  }
  
  .hero h1 {
    font-size: 28px;
  }
  
  .hero-sub {
    font-size: 16px;
  }
  
  .button {
    padding: 14px 20px;
    font-size: 15px;
  }
  
  .card {
    padding: 20px;
  }
  
  .section-head h2 {
    font-size: 28px;
  }
  
  .section-head .muted {
    font-size: 16px;
  }
}

/* Medium screens */
@media (min-width: 769px) and (max-width: 1024px) {
  .nav {
    gap: 24px;
  }
  
  .nav-link {
    font-size: 15px;
  }
  
  .button {
    padding: 12px 24px;
  }
}
