/* Orange themed arc design for Crimson Harbor */
:root{
  --bg:#0b0b10;
  --bg-2:#111118;
  --panel:#14141f;
  --text:#fff8f0;
  --muted:#f2d9c7;
  --primary:#ff7a18;
  --primary-2:#ff4d00;
  --accent:#ffd7b3;
  --border: rgba(255, 173, 114, 0.28);
  --shadow: 0 10px 30px rgba(0,0,0,0.45);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:#0b0f14 !important;
  color:var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height:1.6;
}

.container{max-width:1100px; margin:0 auto; padding:0 20px}

a{color:#ffd9bf; text-decoration:none}
a:hover{text-decoration:underline}

.site-header{
  position:sticky; top:0; z-index:50;
  backdrop-filter:saturate(180%) blur(10px);
  background:#0b0f14 !important;
  border-bottom:1px solid var(--border);
}
.header-inner{display:flex; align-items:center; justify-content:space-between; padding:14px 0}
.brand{display:flex; align-items:center; gap:10px}
.logo{width:36px; height:36px}
.brand-name{font-weight:800; letter-spacing:0.2px}

.nav-toggle{display:none; background:#0b0f14 !important; border:0; padding:6px; cursor:pointer}
.nav-toggle .bar{display:block; width:22px; height:2px; background:#0b0f14 !important; margin:4px 0}
.nav-menu{display:flex; gap:18px; list-style:none; padding:0; margin:0}
.nav a{display:inline-block; padding:8px 10px; border-radius: 36px}
.nav a:hover{background:#0b0f14 !important; text-decoration:none}

.section{padding:72px 0}
.section-alt{background:#0b0f14 !important; overflow:hidden}
.hero-grid{display:grid; grid-template-columns:1.2fr 0.8fr; gap:28px; align-items:center}
.headline{font-size:clamp(32px, 4vw, 48px); margin:0 0 6px}
.tagline{font-weight:700; color:var(--accent); margin:0 0 6px}
.sublead{color:var(--muted); margin:0 0 14px}
.hero-actions{display:flex; gap:12px; flex-wrap:wrap}
.btn{
  display:inline-block; padding:12px 16px; border-radius: 36px; font-weight:700;
  border:1px solid transparent; transition:transform .08s ease;
}
.btn:active{transform:translateY(1px)}
.btn.primary{background:#0b0f14 !important; color:#170c00; box-shadow:var(--shadow)}
.btn.ghost{border-color:var(--border); color:var(--text); background:#0b0f14 !important; border:1px solid var(--border); border-radius: 36px; padding:18px; box-shadow:var(--shadow)}
.facts{margin:0; padding-left:18px}
.facts li{margin:6px 0}

.arcs{position:absolute; inset:0; pointer-events:none}
.arcs svg{width:100%; height:100%}

.dept-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:12px}
.dept{background:#0b0f14 !important; border:1px solid var(--border); border-radius: 36px; padding:16px; min-height:120px}
.dept h3{margin:0 0 6px}

.two-col{display:grid; grid-template-columns:1fr 360px; gap:24px; align-items:start}
.info-card{background:#0b0f14 !important; border:1px solid var(--border); border-radius: 36px; padding:16px}
.profile{background:#0b0f14 !important; border:1px solid var(--border); border-radius: 36px; padding:16px}
.profile-list{display:grid; grid-template-columns:auto 1fr; gap:8px 16px; margin:0}
.profile-list dt{font-weight:700}

.section-tight .link-row{display:flex; flex-wrap:wrap; gap:10px}
.pill{display:inline-block; padding:8px 12px; border-radius: 36px; border:1px solid var(--border); background:#0b0f14 !important; grid-template-columns:1fr 360px; gap:24px; align-items:start}
.join-card{background:#0b0f14 !important; border:1px solid var(--border); border-radius: 36px; padding:16px}
.cta-row{display:flex; gap:12px; flex-wrap:wrap}

.site-footer{padding:30px 0; border-top:1px solid var(--border); background:#0b0f14 !important; gap:10px}
.foot-brand{font-weight:800}
.foot-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:16px}

.glow{box-shadow:0 0 0 0 rgba(255,122,24,0.0); animation:pulse 3s ease-in-out infinite}
@keyframes pulse{
  0%,100%{box-shadow:0 0 0 0 rgba(255,122,24,0.25)}
  50%{box-shadow:0 0 30px 0 rgba(255,122,24,0.35)}
}

.sr-only{position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0}

/* Responsive */
@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr}
  .two-col{grid-template-columns:1fr}
  .dept-grid{grid-template-columns:repeat(2,1fr)}
  .join-grid{grid-template-columns:1fr}
  .foot-grid{grid-template-columns:1fr}
}

@media (max-width: 560px){
  .nav-toggle{display:inline-block}
  .nav-menu{display:none; position:absolute; right:16px; top:56px; background:#0b0f14 !important; padding:12px; border-radius: 36px; border:1px solid var(--border)}
  .nav-menu.open{display:block}
  .dept-grid{grid-template-columns:1fr}
}


/* Added styles for cards and team grid */
.card-actions{margin-top:10px}
.card-actions .btn{padding:10px 12px; font-weight:700}

.team-grid{display:grid; grid-template-columns:repeat(5,1fr); gap:14px; margin-top:12px}
.person{background:#0b0f14 !important; border:1px solid var(--border); border-radius: 36px; padding:14px; text-align:center}
.person h3{margin:0 0 4px}
@media (max-width:980px){ .team-grid{grid-template-columns:repeat(2,1fr)} }
@media (max-width:560px){ .team-grid{grid-template-columns:1fr} }


/* Position Apply button bottom-left */
.dept{position:relative; display:flex; flex-direction:column; justify-content:space-between}
.dept-footer{position:absolute; bottom:10px; left:10px}
.dept-footer .btn{padding:6px 8px; font-size:13px}


/* Fix department card layout and apply button position */
.dept {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-bottom: 48px; /* space for button */
}

.dept p {
  margin: 6px 0 0 0;
  color: var(--muted);
}

.dept-footer {
  position: absolute;
  bottom: 12px;
  left: 12px;
}

.dept-footer .btn {
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 36px;
}


/* Static hero banner background */
.hero{
  background-image: linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0.45)), url('assets/banner.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--border);
}

/* Departments + right-side image stack */
.dept-wrap{
  display:grid;
  grid-template-columns:1.2fr 0.8fr;
  gap:24px;
  align-items:start;
}

.agency-logos{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
}

.agency-logos img{
  width:100%;
  height:auto;
  object-fit:contain;
  background:#0b0f14 !important;
  border:1px solid var(--border);
  border-radius: 36px;
  padding:10px;
  box-shadow:var(--shadow);
}

@media (max-width:980px){
  .dept-wrap{grid-template-columns:1fr}
}

/* SOP section styling */
.sop-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

/* Slow white flash for SOP links */
.sop-list .pill{
  animation: pulseWhite 4s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.0);
}
@keyframes pulseWhite{
  0%,100%{box-shadow:0 0 0 0 rgba(255,255,255,0.20)}
  50%{box-shadow:0 0 30px 0 rgba(255,255,255,0.35)}
}

/* Red and blue flashing border for department logos */
.agency-logos img {
  position: relative;
  animation: flashLights 2s infinite;
}

@keyframes flashLights {
  0% { box-shadow: 0 0 20px 2px rgba(255,0,0,0.8); }
  25% { box-shadow: 0 0 25px 3px rgba(255,0,0,0.6); }
  50% { box-shadow: 0 0 20px 2px rgba(0,0,255,0.8); }
  75% { box-shadow: 0 0 25px 3px rgba(0,0,255,0.6); }
  100% { box-shadow: 0 0 20px 2px rgba(255,0,0,0.8); }
}

/* Overrides per request: white hero Join button, remove orange arcs */
#hero .btn.primary{background:#ffffff !important; color:#0b0f14 !important;}
.arcs{display:none !important;}

/* Center hero buttons row */
.hero-actions{justify-content:flex-start !important;}

/* Match Explore Departments to white like Join */
#hero .btn.ghost{background:#ffffff !important; color:#0b0f14 !important; border:1px solid transparent !important;}

/* Restore Fast facts card background */
.hero-card{background:rgba(20,20,31,0.7) !important; border:1px solid var(--border) !important; border-radius: 36px !important; padding:18px !important; box-shadow:var(--shadow) !important;}

/* White Apply, Staff, and Discord links */
.dept-footer .btn.primary,
#staff-apps .btn.primary,
#join .btn.primary {
  background:#ffffff !important;
  color:#0b0f14 !important;
  border:1px solid transparent !important;
}


/* --- Gallery --- */
.gallery-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:12px;
}
.gallery-item{
  display:block;
  overflow:hidden;
  border-radius: 36px;
  border:1px solid var(--border);
  box-shadow: var(--shadow);
}
.gallery-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  transform:scale(1.01);
  transition: transform .35s ease, filter .35s ease, opacity .35s ease;
}
.gallery-item:hover img{ transform:scale(1.06); filter:brightness(1.05); }

/* Lightbox */
.lightbox-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.85);
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  visibility:hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index:9999;
}
.lightbox-overlay.open{ opacity:1; visibility:visible; }
.lightbox-img{
  max-width:92vw;
  max-height:88vh;
  border-radius: 36px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}

/* Smooth transitions site-wide for key UI */
.btn, .nav a, .pill, .dept, .info-card, .person, .join-card{
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease, transform .25s ease;
}

/* Responsive */
@media (max-width:980px){
  .gallery-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width:560px){
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
}


/* Gallery glowing orange animation */
.gallery-item {
  animation: pulse 3s ease-in-out infinite;
}


/* Founder section */
#founder {
  background:#0b0f14;
  border:1px solid var(--border);
  border-radius: 36px;
  box-shadow:0 0 25px rgba(255,122,24,0.3);
  animation:pulse 3s ease-in-out infinite;
  text-align:center;
  margin-bottom:60px;
}
#founder h2 {
  color:#ffffff !important;
  margin-bottom:12px;
}
#founder p {
  max-width:800px;
  margin:0 auto 12px;
  color:var(--muted);
}


/* Remove top and bottom lines from founder section */
#founder::before,
#founder::after {
  display: none !important;
  content: none !important;
  border: none !important;
  box-shadow: none !important;
}


/* Vertically center right-hand cards beside content */
.two-col > aside,
.two-col > .info-card,
.two-col > .profile,
.two-col > .join-card {
  align-self: center;
}



/* Tighten vertical spacing between sections per request */
.section{padding:48px 0;}
.section-tight{padding:32px 0;}
.section-alt{padding:48px 0; background:#0b0f14 !important;}
/* Slightly reduce gap when sections stack directly */
.section + .section,
.section + .section-alt,
.section-alt + .section,
.section-alt + .section-alt{padding-top:36px;}

/* Help Wanted Section */
.help-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
}

.help-card {
  background: #0b0f14 !important;
  border: 1px solid var(--border);
  border-radius: 36px;
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow);
}

.help-card h3 {
  margin: 0 0 8px;
  color:#ffffff !important;
}

.help-card p {
  color: var(--muted);
  margin-bottom: 12px;
}

.help-card .btn.primary {
  background: #ffffff !important;
  color: #0b0f14 !important;
}



/* We Use Section */
.weuse-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:16px;
  margin-top:14px;
}
.weuse-card{
  background:#0b0f14 !important;
  border:1px solid var(--border);
  border-radius: 36px;
  padding:16px;
  box-shadow: var(--shadow);
  transform: translateZ(0);
}
.weuse-card h3{
  margin:0 0 6px;
  color:#ffffff !important;
}
.weuse-card p{
  margin:0;
  color: var(--muted);
}
.weuse-card:hover{
  box-shadow: 0 0 34px rgba(255,122,24,0.45);
  transform: translateY(-2px);
}

@media (max-width: 980px){
  .weuse-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .weuse-grid{ grid-template-columns: 1fr; }
}
ul{padding-left:16px !important; margin-left:0 !important;}
li{margin-left:0 !important;}

/* Crimson Bot System */
#crimson-bot-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 54px;
  height: 54px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  box-shadow: var(--shadow);
}

#crimson-bot-toggle .crimson-bot-icon {
  font-size: 22px;
}







#crimson-bot-messages {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  color: var(--text);
  background: var(--bg);
}























/* Crimson Bot – iOS style container, header, messages, and keyboard buttons */
#crimson-bot-window {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 340px;
  height: 640px;
  max-height: 640px;
  display: none;
  z-index: 9999;
}


#crimson-bot-window.iphone-container-style,
.iphone-container-style {
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top, rgba(255,122,24,0.15), rgba(2,6,23,0.98));
  border-radius: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: visible;
  font-size: 14px;
}

/* Header */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(15,23,42,0.98), rgba(30,41,59,0.98));
  border-bottom: 1px solid rgba(148,163,184,0.3);
}

.header-bot-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bot-avatar {
  width: 30px;
  height: 30px;
  border-radius: 36px;
  background: radial-gradient(circle at 30% 20%, rgba(248,250,252,0.95), rgba(79,70,229,0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(15,23,42,0.7);
  flex-shrink: 0;
}

.bot-avatar svg {
  width: 18px;
  height: 18px;
}

.bot-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
}

.bot-status {
  font-size: 11px;
  color: var(--muted);
}

.chat-close-button {
  background: transparent;
  border: 1px solid rgba(148,163,184,0.6);
  border-radius: 36px;
  color: var(--muted);
  cursor: pointer;
  width: 22px;
  height: 22px;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.chat-close-button:hover {
  background: rgba(15,23,42,0.9);
  border-color: rgba(248,113,22,0.9);
  color: #e5e7eb;
}


/* Messages */
#crimson-bot-messages {
  flex: 1;
  padding: 10px 10px 8px;
  overflow-y: auto;
  background: radial-gradient(circle at top left, rgba(15,23,42,0.95), rgba(15,23,42,1));
}

.message {
  display: flex;
  width: auto;
  max-width: 80%;
  padding: 7px 10px;
  border-radius: 36px;
  font-size: 13px;
  line-height: 1.35;
  animation: fadeIn 0.2s ease-out;
}


.user-message {
  background: rgba(15,23,42,0.9);
  color: var(--muted);
  border: 1px solid rgba(30,64,175,0.5);
  align-self: flex-end;
  margin: 6px 0;
  text-align: right;
}



.recipient-message {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #0b0f14;
  font-weight: 500;
  box-shadow: 0 0 0 1px rgba(15,23,42,0.8);
  align-self: flex-start;
  margin: 6px 0;
  text-align: left;
}



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

/* Keyboard-style questions */
.keyboard-replacement {
  padding: 10px 10px 8px;
  background: rgba(15,23,42,0.98);
  border-top: 1px solid rgba(148,163,184,0.3);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.keyboard-replacement.disabled {
  opacity: 0.6;
  pointer-events: none;
  filter: grayscale(0.15);
}

.button-row {
  display: flex;
  gap: 8px;
}

.question-button {
  flex: 1;
  border-radius: 36px;
  border: 1px solid rgba(148,163,184,0.5);
  background: rgba(15,23,42,0.9);
  color: var(--muted);
  font-size: 11px;
  padding: 6px 10px;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.1s ease;
}

.question-button:hover {
  background: rgba(30,64,175,0.85);
  border-color: rgba(59,130,246,0.9);
  color: #e5e7eb;
  transform: translateY(-1px);
}

.question-button:active {
  transform: translateY(0);
}

/* Bottom input bar with decorative mic */
.input-bar {
  margin-top: 4px;
  padding: 6px 8px;
  border-radius: 36px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(51,65,85,0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}

.input-bar-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mic-icon {
  width: 20px;
  height: 20px;
  border-radius: 36px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(15,23,42,0.9);
  flex-shrink: 0;
  font-size: 12px;
}

/* Mobile tweak to keep iOS card full-width */
@media (max-width: 560px) {
  #crimson-bot-window {
    width: 90%;
    right: 5%;
    bottom: 80px;
    max-height: 60vh;
  }
}

/* Mobile responsiveness */
@media (max-width: 560px) {
  
  #crimson-bot-toggle {
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
  }
  #crimson-bot-toggle .crimson-bot-icon {
    font-size: 20px;
  }
}


.iphone-home-indicator{
  width: 88px;
  height: 4px;
  border-radius: 36px;
  background: linear-gradient(to right, rgba(148,163,184,0.9), rgba(148,163,184,0.6));
  margin: 12px auto 4px auto;
  opacity: 0.9;
}





/* iPhone-style side buttons */
.iphone-container-style{
  position: relative;
}

/* Base button */
.iphone-btn{
  position: absolute;
  width: 4px;              /* wider */
  border-radius: 36px;
  background: rgba(148,163,184,0.5);
  box-shadow: 0 0 6px rgba(15,23,42,0.6);
  pointer-events: none;
}

/* Volume buttons - left side (outside) */
.iphone-btn-volume-top{
  height: 32px;            /* longer */
  left: -6px;             /* moved fully outside */
  top: 80px;
}

.iphone-btn-volume-bottom{
  height: 32px;            /* longer */
  left: -6px;             /* moved fully outside */
  top: 128px;
}

/* Power button - right side (outside) */
.iphone-btn-power{
  height: 40px;            /* slightly longer */
  right: -6px;            /* moved fully outside */
  top: 96px;
}

/* Ensure inner bot sections follow outer rounded corners */
.chat-header{
  border-top-left-radius: 36px;
  border-top-right-radius: 36px;
  overflow: hidden;
}

.keyboard-replacement{
  border-bottom-left-radius: 36px;
  border-bottom-right-radius: 36px;
  overflow: hidden;
}
