/* =========================================
   AXIOM INTEGRATED MACHINES - DESIGN SYSTEM
   ========================================= */
:root {
    --void-black: #050505;
    --axiom-red: #e60000;
    --axiom-red-glow: rgba(230, 0, 0, 0.4);
    --gunmetal: #121212;
    --gunmetal-light: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    
    --font-heading: 'Orbitron', sans-serif;
    --font-exillion: 'Exo 2', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* =========================================
   GLOBAL RESET & BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--void-black);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-top: 80px; /* Offsets content to prevent the fixed nav bar from covering it */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background-color: var(--void-black);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
}

.hero-graphic {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: top center;
    filter: drop-shadow(0 0 20px rgba(230,0,0,0.1));
}

/* =========================================
   BADGE GRID SECTION
   ========================================= */
.doctrine-section {
    padding: 0 0 4rem 0;
    margin-top: calc(-15vh); /* Adjusted down by 10px per request */
    background: linear-gradient(180deg, rgba(5,5,5,0.98) 0%, var(--gunmetal) 100%);
    border-bottom: 1px solid rgba(230, 0, 0, 0.2);
    position: relative;
    z-index: 10;
}

.badge-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.badge-card {
    background: var(--gunmetal-light);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 1.5rem;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.badge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--axiom-red);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.badge-card:hover {
    transform: translateY(-5px);
    border-color: rgba(230, 0, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px var(--axiom-red-glow);
}

.badge-card:hover::before {
    transform: scaleX(1);
}

.badge-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    color: var(--axiom-red);
    transition: transform 0.3s ease;
}

.badge-card:hover .badge-icon {
    transform: scale(1.1);
}

.highlight-icon {
    color: #ff3333;
    filter: drop-shadow(0 0 8px var(--axiom-red-glow));
}

.badge-text h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* =========================================
   ESPORTS INTEGRATION GRAPHICS
   ========================================= */
.vector-esport-img {
    width: auto;
    max-width: 100%;
    max-height: 220px;
    display: block;
    margin: 0 auto 1.5rem auto;
    border-radius: 4px;
    border: 1px solid rgba(230,0,0,0.2);
    box-shadow: 0 0 15px rgba(230,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hardware-card:hover .vector-esport-img {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(230,0,0,0.3);
    border-color: rgba(230,0,0,0.5);
}

/* =========================================
   PARALLAX LEGEND BANNER
   ========================================= */
.banner-divider {
    width: 100%;
    height: 350px;
    background: linear-gradient(rgba(5,5,5,0.7), rgba(5,5,5,0.9)), url('../assets/legend_banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    border-top: 1px solid rgba(230,0,0,0.2);
    border-bottom: 1px solid rgba(230,0,0,0.2);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-floating-title {
    font-family: var(--font-orbitron);
    font-size: 2.8rem;
    color: #ffffff;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.9), 0 0 50px rgba(0, 0, 0, 1);
    letter-spacing: 2px;
    text-align: center;
    margin: 0;
    padding: 0 2rem;
    z-index: 2;
}

.highlight-text {
    color: var(--axiom-red) !important;
    text-shadow: 0 0 10px var(--axiom-red-glow);
}

.badge-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    padding: 6rem 0;
    text-align: center;
    background-color: var(--void-black);
    position: relative;
}

.dominion-text {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 2rem;
    letter-spacing: 6px;
    text-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.axiom-branding h4 {
    font-size: 1rem;
    color: var(--axiom-red);
    margin-bottom: 0.5rem;
    letter-spacing: 4px;
}

.axiom-branding p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

/* =========================================
   ANIMATIONS & UTILITIES
   ========================================= */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   NAVIGATION BAR
   ========================================= */
.global-nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4rem;
}

.nav-brand {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 4px;
    display: flex;
    align-items: center;
}

.nav-brand span {
    color: var(--axiom-red);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 2px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    text-transform: uppercase;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--axiom-red-glow);
}

/* =========================================
   CONTENT PAGES (DOCTRINE & CONTACT)
   ========================================= */
.page-header {
    padding: 12rem 2rem 4rem 2rem;
    text-align: center;
    background: radial-gradient(circle at center, rgba(230,0,0,0.1) 0%, var(--void-black) 70%);
}

body.doctrine-page {
    background: linear-gradient(rgba(10,10,10,0.93), rgba(10,10,10,0.98)), url('../assets/LEVI_BEASTMODE.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.doctrine-header {
    background: transparent;
}

body.contact-page {
    background: linear-gradient(rgba(10,10,10,0.93), rgba(10,10,10,0.98)), url('../assets/Leviathan_Trinity.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.contact-header {
    background: transparent;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(230,0,0,0.3);
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.content-section {
    padding: 2rem 2rem 8rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.content-section h2 {
    color: var(--axiom-red);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    margin-top: 4rem;
}

.content-section p {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.content-section p.devour {
    font-family: var(--font-exillion);
    font-size: 1.5rem;
    color: var(--text-primary);
    border-left: 4px solid var(--axiom-red);
    padding-left: 2rem;
    margin-top: 4rem;
    text-shadow: 0 0 10px var(--axiom-red-glow);
}

/* =========================================
   CONTACT GRID
   ========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background: var(--gunmetal-light);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.contact-card:hover {
    border-color: var(--axiom-red);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px var(--axiom-red-glow);
    transform: translateY(-5px);
}

.contact-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
}
/* =========================================
   DEPLOYMENT & PARADIGM SECTIONS
   ========================================= */
.custom-badge-icon {
    width: 85px;
    height: 85px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(183, 28, 28, 0.4));
}

.info-section {
    padding: 6rem 0;
    background: var(--gunmetal);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-section.dark-alt {
    background: var(--void-black);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    letter-spacing: 4px;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.three-col-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.hardware-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.hardware-card:hover {
    border-color: rgba(183, 28, 28, 0.5);
    background: rgba(183, 28, 28, 0.02);
    transform: translateY(-5px);
}

.hardware-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.hardware-subtitle {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--axiom-red);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hardware-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.axiom-red-text {
    color: var(--axiom-red);
    font-family: var(--font-heading);
    font-size: 2.5rem;
    letter-spacing: 4px;
    margin-bottom: 1rem;
}

.lead-text {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

.paradigm-box {
    background: #131314;
    border-left: 4px solid var(--axiom-red);
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.paradigm-box p {
    font-family: var(--font-exillion);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.paradigm-box .final-blow {
    font-family: var(--font-exillion);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 1200px) {
    .badge-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .dominion-text {
        font-size: 1.8rem;
    }
    
    .badge-grid,
    .three-col-grid {
        grid-template-columns: 1fr;
    }
}
