/* RESET & CORE VARIABLES */
html {
    font-size: 18px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* UPDATED SPACE THEME VARIABLES */
:root {
    --bg-void: linear-gradient(135deg, #020205 0%, #050512 50%, #0a0816 100%);
    --bg-panel: rgba(12, 12, 18, 0.65);
    --bg-panel-hover: rgba(20, 20, 35, 0.8);
    --text-cream: #EAE7DC;
    --text-muted: #7E849B;
    --accent-gold: #D4AF37;
    --accent-glow: rgba(212, 175, 55, 0.08);
}

/* Ensure background scales completely across the whole screen */
body {
    background: var(--bg-void);
    background-attachment: fixed;
    color: var(--text-cream);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* PORTAL IMAGE STYLING CONFIGURATION */
.portal-art-container {
    max-width: 500px;
    width: 100%;
    margin: 2rem auto;
    padding: 0 1rem;
}

.portal-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(126, 132, 155, 0.05);
}

/* Frosted glass glassmorphism blur */
.split-card, .manifesto {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* HERO SECTION */
.hero {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    border-bottom: 1px solid #1A1A1A;
}

.logo-container {
    margin-bottom: 3rem;
}

.main-logo {
    max-width: 320px;
    height: auto;
    display: block;
    margin: 0 auto 1rem auto;
}

.meta-string {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.hero-headline {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.hero-subline {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.cta-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 1px solid var(--text-cream);
    color: var(--text-cream);
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s ease;
}

.cta-btn:hover {
    background-color: var(--text-cream);
    color: #020205;
}

/* MANIFESTO SECTION */
.manifesto {
    padding: 6rem 0;
    background-color: var(--bg-panel);
    border-bottom: 1px solid #1A1A1A;
    text-align: center;
}

.manifesto-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-cream);
    letter-spacing: 0.5px;
    line-height: 1.8;
}

/* DUALITY SPLIT HUB */
.split-container {
    display: flex;
    min-height: 75vh;
}

.split-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6rem 4rem;
    text-align: center;
    position: relative;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.chassis-card {
    border-right: 1px solid #1A1A1A;
}

.chassis-card:hover {
    background-color: var(--bg-panel-hover);
}

.engine-card:hover {
    background-color: var(--bg-panel-hover);
    box-shadow: inset 0 0 50px var(--accent-glow);
}

/* MASCOT NAMES: WHITE LETTERS WITH GOLD OUTLINE */
.tech-label {
    position: absolute;
    top: 2rem;
    font-family: 'Pinyon Script', cursive;
    font-size: 2.6rem;
    color: #FFFFFF;
    -webkit-text-stroke: 1.2px #D4AF37;
    paint-order: stroke fill;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.7);
    letter-spacing: 1px;
    font-weight: 400;
    text-transform: none;
    opacity: 1;
    z-index: 10;
}

.mascot-img {
    max-width: 160px;
    height: auto;
    margin-bottom: 2rem;
    opacity: 0.85;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.split-card:hover .mascot-img {
    opacity: 1;
    transform: scale(1.05);
}

.split-card:hover .wheel-animate {
    transform: scale(1.05) rotate(5deg);
}

.card-title {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
}

.card-subtitle {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.card-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 380px;
    margin-bottom: 2rem;
    font-weight: 300;
}

.card-link {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-cream);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 4px;
    transition: border-color 0.3s ease;
}

.split-card:hover .card-link {
    border-color: var(--accent-gold);
}

/* FOOTER */
.site-footer {
    padding: 3.5rem 2rem;
    text-align: center;
    background-color: #020205;
    border-top: 1px solid #1A1A1A;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* LARGER FOOTER MERCH LINK */
.footer-merch {
    margin-bottom: 2rem;
}

.merch-link {
    display: inline-block;
    padding: 1rem 2.2rem;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.merch-link:hover {
    background-color: var(--accent-gold);
    color: #020205;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.35);
    transform: translateY(-2px);
}

/* RESPONSIVE LAYOUT FOR MOBILE DEVICES */
@media (max-width: 768px) {
    .split-container {
        flex-direction: column;
    }
    .chassis-card {
        border-right: none;
        border-bottom: 1px solid #1A1A1A;
    }
    .hero-headline {
        font-size: 1.8rem;
    }
    .split-card {
        padding: 4rem 2rem;
    }
}

/* SUB-PAGE ELEMENT STYLING BLOCK */
.sub-nav {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.back-link {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--accent-gold);
}

.profile-container {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 2rem 6rem 2rem;
}

/* PROFILE MASCOT SIGNATURE: WHITE LETTERS WITH GOLD OUTLINE */
.profile-signature {
    font-family: 'Pinyon Script', cursive;
    font-size: 4.5rem;
    color: #FFFFFF;
    -webkit-text-stroke: 1.5px #D4AF37;
    paint-order: stroke fill;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.7);
    margin-bottom: 0.5rem;
}

.profile-meta-title {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    margin-bottom: 3rem;
}

.profile-art-wrap {
    max-width: 280px;
    width: 100%;
    margin-bottom: 4rem;
}

.profile-mascot-img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.7));
}

.profile-content {
    max-width: 650px;
    width: 100%;
    background-color: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 3rem;
    border-radius: 4px;
}

.profile-text {
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--text-cream);
    line-height: 1.8;
    text-align: center;
}

/* GLOBAL MASCOT BLOCK FORCING CORRECT SCALE EVERYWHERE */
img[src*="fox-rock.png"],
img[src*="seal-wheel.png"] {
    max-width: 220px !important;
    width: 100% !important;
    height: auto !important;
}

/* SOCIAL MEDIA DIRECTORY GRID */
.social-links-grid {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
}

.social-btn {
    display: block;
    width: 100%;
    padding: 1.1rem 1.5rem;
    border: 1px solid rgba(234, 231, 220, 0.25);
    background-color: rgba(2, 2, 5, 0.4);
    color: var(--text-cream);
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.35s ease;
}

.social-btn:hover {
    border-color: var(--accent-gold);
    background-color: var(--bg-panel-hover);
    color: var(--accent-gold);
    box-shadow: 0 0 25px var(--accent-glow);
    transform: translateY(-2px);
}


}
/* CUSTOM HOMEPAGE COLOR OVERRIDES (DEEPER ROYAL PURPLE) */

/* 1. Top UMBRA IGNITION meta string right under the logo */
header.hero .logo-container .meta-string {
  color: #9D4EDD !important;
}

/* 2. Hero Headline */
.hero-headline {
  color: #D4AF37 !important;
}

/* 3. Hero Subline */
.hero-subline {
  color: #9D4EDD !important;
}

/* 4. Social Media Button (Deeper Purple) */
.hero .cta-btn {
  border-color: #9D4EDD !important;
  color: #9D4EDD !important;
}
.hero .cta-btn:hover {
  background-color: #9D4EDD !important;
  color: #020205 !important;
}

/* 5. Manifesto Text (Gold - Homepage Only) */
body > .manifesto .manifesto-text {
  color: #D4AF37 !important;
}

/* 6. Volpe (Blue outline & glow) */
.chassis-card .tech-label {
  -webkit-text-stroke: 1.2px #4DA6FF !important;
  text-shadow: 0 0 12px rgba(77, 166, 255, 0.75) !important;
}

/* 7. Phouque (Red outline & glow) */
.engine-card .tech-label {
  -webkit-text-stroke: 1.2px #FF4D5E !important;
  text-shadow: 0 0 12px rgba(255, 77, 94, 0.75) !important;
}

/* 8. Both Split Card Titles ("The Chassis" & "The Engine" - Deeper Purple) */
.split-card .card-title {
  color: #9D4EDD !important;
}

/* 9. Both Split Card Descriptions (Gold) */
.card-description {
  color: #D4AF37 !important;
}

/* 10. Both Split Card Links (Deeper Purple) */
.card-link {
  color: #9D4EDD !important;
}
.split-card:hover .card-link {
  border-color: #9D4EDD !important;
}

/* Make entire split card clickable without default link styling */
.split-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
/* HALF-GOLD / HALF-PURPLE AMBIENT GLOW LOCKED BEHIND LOGO */
.logo-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0 auto 3rem auto;
  z-index: 1;
}

.logo-container::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 260px;
  background: linear-gradient(
    90deg,
    rgba(212, 175, 55, 0.45) 0%,
    rgba(212, 175, 55, 0.25) 45%,
    rgba(157, 78, 221, 0.25) 55%,
    rgba(157, 78, 221, 0.5) 100%
  );
  border-radius: 50%;
  filter: blur(45px);
  z-index: -1;
  pointer-events: none;
}

.main-logo {
  position: relative;
  z-index: 2;
  margin: 0 auto !important;
}
/* AMBIENT BLUE & RED GLOW BEHIND MASCOT IMAGES */

/* Volpe (Blue Glow - Homepage & Chassis Sub-Page) */
img[src*="fox-rock.png"] {
  filter: drop-shadow(0 0 22px rgba(77, 166, 255, 0.55));
  transition: transform 0.5s ease, opacity 0.5s ease, filter 0.5s ease;
}

.chassis-card:hover img[src*="fox-rock.png"] {
  filter: drop-shadow(0 0 32px rgba(77, 166, 255, 0.85));
}

/* Phouque (Red Glow - Homepage & Engine Sub-Page) */
img[src*="seal-wheel.png"] {
  filter: drop-shadow(0 0 22px rgba(255, 77, 94, 0.55));
  transition: transform 0.5s ease, opacity 0.5s ease, filter 0.5s ease;
}

.engine-card:hover img[src*="seal-wheel.png"] {
  filter: drop-shadow(0 0 32px rgba(255, 77, 94, 0.85));
}
/* Volpe: Orange inner letters with Blue outline & glow */
.chassis-card .tech-label {
  color: #FF8C00 !important;
  -webkit-text-stroke: 1.2px #4DA6FF !important;
  text-shadow: 0 0 12px rgba(77, 166, 255, 0.75) !important;
}

/* Phouque: Cyan inner letters with Red outline & glow */
.engine-card .tech-label {
  color: #00E5FF !important;
  -webkit-text-stroke: 1.2px #FF4D5E !important;
  text-shadow: 0 0 12px rgba(255, 77, 94, 0.75) !important;
}
/* =========================================================
   SUB-PAGE THEME OVERRIDES (CHASSIS / VOLPE & ENGINE / PHOUQUE)
   ========================================================= */

/* 1. Mascot Signature Titles (Matches Homepage Mascot Names) */
.theme-chassis .profile-signature {
  color: #FF8C00 !important;
  -webkit-text-stroke: 1.5px #4DA6FF !important;
  text-shadow: 0 0 15px rgba(77, 166, 255, 0.75) !important;
}

.theme-engine .profile-signature {
  color: #00E5FF !important;
  -webkit-text-stroke: 1.5px #FF4D5E !important;
  text-shadow: 0 0 15px rgba(255, 77, 94, 0.75) !important;
}

/* 2. Sub-Page Meta Subtitle & Navigation (Purple) */
.profile-meta-title {
  color: #9D4EDD !important;
}

.back-link:hover {
  color: #9D4EDD !important;
}

/* 3. Top Quote Bio & Main Guide Paragraphs (Gold) */
.profile-text {
  color: #D4AF37 !important;
}

.profile-content .manifesto-text {
  color: #D4AF37 !important;
}

/* 4. Section Headings & Prompt Card Titles (Purple) */
.profile-content .card-title,
.prompt-card h3 {
  color: #9D4EDD !important;
}

/* 5. Sub-Page CTA Buttons & Copy Buttons (Purple) */
.profile-content .cta-btn,
.prompt-card button {
  border-color: #9D4EDD !important;
  color: #9D4EDD !important;
  transition: all 0.3s ease;
}

.profile-content .cta-btn:hover,
.prompt-card button:hover {
  background-color: #9D4EDD !important;
  color: #020205 !important;
}

/* 6. Prompt Box Text (Gold) */
.prompt-card pre {
  color: #D4AF37 !important;
}
/* =========================================================
   SUB-PAGES ONLY: FULL-PAGE BACKGROUND WALLPAPER
   ========================================================= */
body.theme-chassis,
body.theme-engine,
body.theme-socials {
  background: linear-gradient(rgba(2, 2, 5, 0.78), rgba(2, 2, 5, 0.85)),
              url("user-interface.jpg") center / cover no-repeat fixed !important;
}

/* Keep sub-page glass panels semi-transparent so the wallpaper shows through */
body.theme-chassis .profile-content,
body.theme-engine .profile-content,
body.theme-socials .profile-content,
body.theme-chassis .prompt-card,
body.theme-engine .prompt-card {
  background-color: rgba(10, 10, 18, 0.55) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Frosted dark glass footer on sub-pages */
body.theme-chassis .site-footer,
body.theme-engine .site-footer,
body.theme-socials .site-footer {
  background-color: rgba(2, 2, 5, 0.75) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
/* =========================================================
   UNIFIED SITE-WIDE BUTTONS (PURPLE DEFAULT -> GOLD HOVER)
   ========================================================= */
.cta-btn,
.back-link,
.social-btn,
.prompt-card button {
  display: inline-block;
  border: 1px solid #9D4EDD !important;
  color: #9D4EDD !important;
  background-color: rgba(12, 12, 18, 0.55) !important;
  text-decoration: none;
  transition: all 0.35s ease !important;
}

/* Keep social buttons full-width stacked inside the socials grid */
.social-btn {
  display: block !important;
}

.cta-btn:hover,
.back-link:hover,
.social-btn:hover,
.prompt-card button:hover {
  border-color: #D4AF37 !important;
  color: #D4AF37 !important;
  background-color: rgba(212, 175, 55, 0.12) !important;
  box-shadow: 0 0 22px rgba(212, 175, 55, 0.35) !important;
  transform: translateY(-2px);
}
