/* 
==========================================================================
1. CORE SETUP & RESET
==========================================================================
*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  overflow-x: hidden;
  background-color: #0f0f0f; /* Dark fallback while images load */
}

/* Visually hides element for display while keeping it active for SEO/Screen Readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* 
==========================================================================
2. DYNAMIC RESPONSIVE BACKGROUND SWITCHER
==========================================================================
*/
.bg-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1; /* Pushes background behind your interactive links */
}

.bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Keeps background aspect ratio perfect without stretching */
  object-position: center;
  transition: opacity 0.3s ease-in-out; /* Smooth fade when rotating phone */
}

/* 
==========================================================================
3. MAIN CONTAINER & BUTTON GRID LAYOUT
==========================================================================
*/
.landing-container {
  width: 100%;
  max-width: 850px;
  padding: 2rem;
  /* Leaves room at the top so links sit cleanly BELOW the top-centered branding */
  margin-top: 18vh; 
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portal-grid {
  display: grid;
  /* Automatically places buttons side-by-side on wide screens, stacked on mobile */
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  width: 100%;
  justify-content: center;
}

/* Base Card Attributes */
.portal-card {
  position: relative;
  height: 140px;
  border-radius: 8px;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Interactive Hover Effect */
.portal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
}

/* 
==========================================================================
4. BUTTON 1: JENSEN 541R LINK
==========================================================================
*//* AFTER */
.jensen-card {
  /* Dark rusty brown with 85% opacity */
  background: rgba(85, 42, 26, 0.85); 
  /* Warm copper/rust border to highlight the edges */
  border: 1px solid rgba(160, 80, 50, 0.4); 
  backdrop-filter: blur(5px);
}
 /* Soft glass effect over background */
}

.jensen-card .card-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.jensen-logo {
  max-width: 220px;
  max-height: 95px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}

.card-label {
  color: #d1d5db;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* 
==========================================================================
5. BUTTON 2: WORKSHOP LINK (BLUEPRINT STYLE)
==========================================================================
*/
.blueprint-card {
  background-color: #002b55;
  border: 2px solid #4a8cff;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.6);
}

/* Creates technical drafting grid lines using pure CSS */
.blueprint-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 15px 15px;
}

.blueprint-card .card-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.blueprint-tag {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.75rem;
  color: #72a8ff;
  letter-spacing: 2px;
}

.blueprint-title {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.3rem;
  font-weight: bold;
  color: #ffffff;
  letter-spacing: 1.5px;
  margin: 4px 0;
}

.blueprint-sub {
  font-size: 0.8rem;
  color: #a3c7ff;
  font-style: italic;
}

/* 
==========================================================================
6. PORTRAIT / MOBILE ADJUSTMENTS
==========================================================================
*/
@media (orientation: portrait) {
  .landing-container {
    /* Slightly more top clearance for vertical phone screens */
    margin-top: 22vh; 
  }
}
