/* Home-only overrides for logo + hero video embedding.
   Keeps existing CyberSchool color grading (no changes to style.css theme variables).
*/

/* Nav logo: replace the diamond placeholder content with logo.png */
.nav-logo img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Hero logo video container */
.hero-logo-video{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
  opacity: 0.95;
}

.hero-logo-video-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.1) brightness(0.85);
  opacity: 0.35;
}

.hero-logo-video-center{
  position: relative;
  width: 65%;
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.45);
  filter: saturate(1) contrast(1.05) brightness(0.98);
  opacity: 0.95;
}

.hero-logo-video-fallback{
  font-family: 'Cinzel', serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--gold-light);
  background: rgba(0,0,0,0.2);
  padding: 20px 26px;
  border: 1px solid rgba(201,162,39,0.25);
  border-radius: 12px;
}

/* Ensure existing hero content stays above the video layer */
.hero-inner{
  position: relative;
  z-index: 2;
}

/* Tighten Home vertical spacing to remove excess blank space */
.hero{ 
  padding: 0; 
}

.index-home{
  background: var(--ink);
}

/* Reduce section padding only on Home to remove big gaps */
.index-home section{ 
  padding-top: 72px; 
  padding-bottom: 72px; 
}

/* If the wrapper class is not present (older markup), apply minimal safe tightening */
.hero + .ticker{ 
  margin-top: -10px; 
}

/* Keep shield visual on top of center video (if present) */
.hero-visual .shield-wrap{
  position: relative;
  z-index: 3;
}

@media (max-width: 768px){
  .hero{
    margin-top: 0 !important;
  }

  .hero-visual{
    order: initial !important;
    width: 100%;
    margin-top: 8px;
  }

  .hero-logo-video{
    position: relative;
    inset: auto;
    min-height: 260px;
    width: 100%;
    opacity: 1;
    justify-content: center;
    align-items: center;
  }

  .hero-logo-video-bg{
    display: none;
  }

  .hero-logo-video-center{
    width: min(100%, 340px);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.34);
    background: #0d0c0a;
  }
}

@media (max-width: 480px){
  .hero{
    min-height: auto;
    margin-top: 0 !important;
  }

  .hero-inner{
    gap: 12px;
  }

  .hero-visual,
  .hero-logo-video,
  .hero-logo-video-bg,
  .hero-logo-video-center{
    display: none !important;
  }

  .hero-content{
    width: 100%;
  }

  .hero-copy-block,
  .hero-content{
    position: relative;
    z-index: 3;
  }

  .hero-eyebrow,
  .hero-title,
  .hero-sub,
  .hero-actions,
  .hero-stats{
    position: relative;
    z-index: 3;
  }
}

/* ========================================
   INTERACTIVE PHOTO DROP ZONE & CYBER ID CARD
   ======================================== */
.cyber-id-section {
  background: var(--ink-soft);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}

.id-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-top: 40px;
}

@media (max-width: 992px) {
  .id-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Upload Drop Zone */
.drop-zone-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drop-zone-container {
  background: rgba(255, 255, 255, 0.02);
  border: 2px dashed rgba(201, 162, 39, 0.3);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.drop-zone-container:hover, .drop-zone-container.drag-over {
  border-color: var(--gold-light);
  background: rgba(201, 162, 39, 0.05);
  box-shadow: 0 0 25px rgba(201, 162, 39, 0.15);
}

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

.drop-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: rgba(201, 162, 39, 0.08);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: all 0.3s ease;
}

.drop-zone-container:hover .drop-icon {
  transform: scale(1.1);
  color: var(--gold-light);
  background: rgba(201, 162, 39, 0.15);
}

.drop-zone-title {
  font-family: 'Lora', serif;
  font-size: 18px;
  color: var(--white);
  margin-bottom: 8px;
  font-weight: 600;
}

.drop-zone-desc {
  font-size: 13px;
  color: rgba(250, 250, 248, 0.5);
  margin-bottom: 20px;
}

.id-name-input-group {
  margin-top: 10px;
  text-align: left;
}

.id-name-input-group label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 600;
}

.id-name-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: 4px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: all 0.3s ease;
}

.id-name-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(201, 162, 39, 0.2);
}

/* Cyber ID Card Preview */
.cyber-id-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 250px;
  margin: 0 auto;
  background: linear-gradient(135deg, #100f0d 0%, #1e1b15 100%);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 16px;
  padding: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cyber-id-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.id-card-glow {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  box-shadow: inset 0 0 20px rgba(201, 162, 39, 0.15);
  pointer-events: none;
}

.id-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(201, 162, 39, 0.15);
  padding-bottom: 12px;
}

.id-card-logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.id-card-logo {
  width: 24px;
  height: 24px;
}

.id-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.id-card-academy {
  font-family: 'Lora', serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.id-card-academy span {
  display: block;
  font-size: 7px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}

.id-card-type {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  background: var(--crimson);
  padding: 4px 8px;
  border-radius: 2px;
  letter-spacing: 0.1em;
}

.id-card-body {
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 16px 0;
  flex-grow: 1;
}

.id-card-photo-container {
  width: 80px;
  height: 100px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.id-card-photo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.id-card-photo-placeholder {
  color: rgba(201, 162, 39, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.id-card-photo-placeholder svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.id-card-photo-placeholder span {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Scanning scanline overlay */
.id-scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold-light);
  box-shadow: 0 0 8px var(--gold);
  opacity: 0;
  pointer-events: none;
}

.id-card-photo-container.has-photo .id-scanline {
  animation: scan 2s linear infinite;
  opacity: 0.8;
}

@keyframes scan {
  0% { top: 0; }
  50% { top: 100%; }
  100% { top: 0; }
}

.id-card-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.id-detail-item {
  display: flex;
  flex-direction: column;
}

.id-detail-label {
  font-size: 7px;
  text-transform: uppercase;
  color: rgba(250, 250, 248, 0.4);
  letter-spacing: 0.05em;
}

.id-detail-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
}

.id-detail-value.name-value {
  font-family: 'Lora', serif;
  font-size: 14px;
  color: var(--gold-light);
}

.id-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 8px;
  font-size: 7px;
  color: rgba(250, 250, 248, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.id-barcode {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--gold);
  letter-spacing: 0.05em;
}

