/*
Theme Name: FAILSAFE
Theme URI: https://failsafe.demo
Author: Sprint to Innovate Team
Author URI: https://rrcpolytech.ca
Description: Custom retro arcade theme for FAILSAFE - Safe-Failure AI & Cyber Sandbox. Features 80s/90s neon aesthetic with modern readability.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: failsafe
Tags: custom, education, cybersecurity, retro, arcade
*/

/* ============================================
   RESET & BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0A0E27;
    color: #C7C7C7;
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: #FFFFFF;
}

h1 {
    font-size: clamp(36px, 8vw, 60px);
    font-weight: 900;
    letter-spacing: 0.05em;
}

h2 {
    font-size: clamp(28px, 6vw, 42px);
    margin-bottom: 24px;
}

h3 {
    font-size: clamp(22px, 4vw, 32px);
    margin-bottom: 16px;
}

h4 {
    font-size: clamp(18px, 3vw, 24px);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

p {
    margin-bottom: 16px;
}

.large {
    font-size: 20px;
}

.emphasis {
    color: #FFFFFF;
    font-weight: 600;
}

/* ============================================
   LAYOUT CONTAINERS
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 48px;
    }
}

.section {
    padding: 64px 0;
}

@media (min-width: 768px) {
    .section {
        padding: 96px 0;
    }
}

.section-light {
    background-color: #0A0E27;
}

.section-dark {
    background-color: #1A1F3A;
}

.section-safety {
    background-color: #1A1F3A;
    border-top: 2px solid #00FF41;
    border-bottom: 2px solid #00FF41;
}

.section-cta {
    background: linear-gradient(135deg, #2D1B69 0%, #0A0E27 100%);
}

/* ============================================
   GRID LAYOUTS
   ============================================ */

.two-col,
.three-col,
.four-col {
    display: grid;
    gap: 32px;
    margin-top: 48px;
}

.two-col {
    grid-template-columns: 1fr;
}

.three-col {
    grid-template-columns: 1fr;
}

.four-col {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .two-col {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
    
    .three-col {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .four-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .four-col {
        grid-template-columns: repeat(4, 1fr);
    }
}

.center-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.center {
    text-align: center;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #00F0FF;
    z-index: 1000;
    padding: 16px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: #00F0FF;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
    letter-spacing: 0.05em;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: #00F0FF;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 240, 255, 0.5);
}

.nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 250px;
    height: calc(100vh - 70px);
    background-color: rgba(10, 14, 39, 0.98);
    padding: 32px 24px;
    transition: right 0.3s ease;
    border-left: 2px solid #00F0FF;
}

.nav-menu.active {
    right: 0;
}

.nav-menu li {
    margin-bottom: 24px;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #C7C7C7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
    color: #00F0FF;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}

.btn-nav {
    display: inline-block;
    padding: 12px 24px;
    background: #00F0FF;
    color: #0A0E27;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background: transparent;
    color: #00F0FF;
    border: 2px solid #00F0FF;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.8);
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }
    
    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        display: flex;
        align-items: center;
        gap: 32px;
        background: transparent;
        border: none;
    }
    
    .nav-menu li {
        margin-bottom: 0;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 120px 24px 80px;
    background: #0A0E27;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    transform-origin: bottom;
    opacity: 0.3;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.neon-glow {
    color: #00F0FF;
    text-shadow: 
        0 0 10px rgba(0, 240, 255, 0.8),
        0 0 20px rgba(0, 240, 255, 0.6),
        0 0 30px rgba(0, 240, 255, 0.4),
        0 0 40px rgba(0, 240, 255, 0.2);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: clamp(24px, 5vw, 36px);
    color: #FFFFFF;
    margin-bottom: 24px;
}

.hero-description {
    font-size: clamp(16px, 2.5vw, 20px);
    color: #C7C7C7;
    margin-bottom: 48px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 24px;
    }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 16px 32px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: #00F0FF;
    color: #0A0E27;
    border-color: #00F0FF;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.btn-primary:hover {
    background: transparent;
    color: #00F0FF;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.8),
                0 0 60px rgba(0, 240, 255, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #FF00FF;
    border-color: #FF00FF;
}

.btn-secondary:hover {
    background: #FF00FF;
    color: #0A0E27;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.6);
    transform: translateY(-2px);
}

.btn-primary.large {
    padding: 20px 48px;
    font-size: 20px;
}

/* ============================================
   SECTION TITLES & DIVIDERS
   ============================================ */

.section-title {
    color: #00F0FF;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
    margin-bottom: 24px;
}

.subsection-title {
    font-size: 32px;
    text-align: center;
    margin: 48px 0 32px;
    color: #FFFFFF;
}

.section-text {
    font-size: 16px;
    color: #C7C7C7;
    line-height: 1.7;
    margin-bottom: 16px;
}

.neon-divider {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00F0FF, transparent);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
    margin: 48px 0;
}

/* ============================================
   ICON BOXES
   ============================================ */

.icon-box {
    text-align: center;
    padding: 24px;
}

.icon-large {
    font-size: 48px;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.6));
}

.icon-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #00F0FF;
    margin-bottom: 12px;
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.4);
}

.icon-description {
    font-size: 16px;
    line-height: 1.6;
    color: #C7C7C7;
}

/* ============================================
   ROLE CARDS
   ============================================ */

.role-card {
    background: #1A1F3A;
    border: 3px solid #00F0FF;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    transition: all 0.3s ease;
    text-align: center;
}

.role-card:hover {
    border-color: #FF00FF;
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.5);
    transform: translateY(-4px);
}

.role-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #00F0FF;
    margin: 16px 0 8px;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

.role-subtitle {
    font-size: 14px;
    color: #FF00FF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    font-weight: 600;
}

.role-description {
    font-size: 16px;
    color: #C7C7C7;
    line-height: 1.6;
    margin-bottom: 16px;
}

.role-list {
    text-align: left;
    margin-top: 16px;
}

.role-list li {
    font-size: 14px;
    color: #C7C7C7;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.role-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #00F0FF;
}

/* ============================================
   LISTS & CHECKLISTS
   ============================================ */

.problem-list li,
.safety-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.6;
}

.icon {
    flex-shrink: 0;
    font-size: 20px;
}

.check-icon {
    flex-shrink: 0;
    font-size: 24px;
}

/* ============================================
   GRAPHICS & SPECIAL ELEMENTS
   ============================================ */

.col-graphic {
    display: flex;
    align-items: center;
    justify-content: center;
}

.warning-graphic {
    font-size: 120px;
    filter: drop-shadow(0 0 20px rgba(255, 0, 255, 0.6));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* ============================================
   PILOT TIMELINE
   ============================================ */

.pilot-timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 48px 0;
}

@media (min-width: 768px) {
    .pilot-timeline {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

.timeline-item {
    text-align: center;
    padding: 24px;
    background: rgba(0, 240, 255, 0.05);
    border: 2px solid #00F0FF;
    border-radius: 8px;
}

.timeline-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 48px;
    font-weight: 900;
    color: #00F0FF;
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.8);
    margin-bottom: 8px;
}

.timeline-item h4 {
    font-size: 16px;
    color: #FFFFFF;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: #0A0E27;
    border-top: 2px solid #00F0FF;
    padding: 48px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: #00F0FF;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
    margin-bottom: 12px;
}

.footer-heading {
    font-size: 18px;
    color: #FF00FF;
    margin-bottom: 16px;
}

.footer-text {
    font-size: 14px;
    color: #C7C7C7;
    line-height: 1.6;
    margin-bottom: 8px;
}

.footer-text.small {
    font-size: 12px;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #C7C7C7;
    font-size: 14px;
}

.footer-links a:hover {
    color: #00F0FF;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 240, 255, 0.2);
}

.footer-bottom p {
    font-size: 12px;
    color: #C7C7C7;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 48px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 48px; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
