/* ============================================================
   CyborgAge - Futuristic Dystopian Sci-Fi Theme
   ============================================================ */

:root {
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-panel: rgba(10, 10, 10, 0.8);
    --bg-panel-light: rgba(15, 15, 15, 0.6);
    --neon-cyan: #00ffff;
    --neon-pink: #ff00ff;
    --neon-green: #39ff14;
    --neon-purple: #bf00ff;
    --neon-yellow: #ffff00;
    --neon-blue: #00bfff;
    --neon-orange: #ff4500;
    --shadow-dark: 0 0 5px var(--neon-cyan),
                   0 0 10px var(--neon-cyan),
                   0 0 20px var(--neon-cyan),
                   0 0 40px var(--neon-cyan);
    --shadow-pink: 0 0 5px var(--neon-pink),
                   0 0 10px var(--neon-pink),
                   0 0 20px var(--neon-pink),
                   0 0 40px var(--neon-pink);
    --transition: all 0.3s ease;
    --font-primary: 'Orbitron', 'Arial Black', sans-serif;
    --font-secondary: 'Share Tech Mono', 'Courier New', monospace;
}

/* Cards - Glassmorphism with neon borders */
.card {
    background: rgba(15, 15, 20, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.1),
        inset 0 0 10px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        linear-gradient(
            45deg,
            transparent,
            rgba(0, 255, 255, 0.1),
            transparent
        );
    transform: rotate(30deg);
    transition: transform 0.5s ease;
}

.card:hover::before {
    transform: rotate(30deg) translate(50%, -50%);
}

.card:hover {
    background: rgba(20, 20, 25, 0.7);
    border-color: var(--neon-cyan);
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.4),
        inset 0 0 15px rgba(0, 0, 0, 0.4);
    transform: translateY(-5px);
}

.card h2, .card h3 {
    font-family: var(--font-primary);
    color: #fff;
    margin-top: 0;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card h2::before, .card h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background: linear-gradient(
        to bottom,
        var(--neon-cyan),
        transparent
    );
    border-radius: 2px;
    box-shadow: 0 0 8px var(--neon-cyan);
}

.card p, .card li, .card ul {
    line-height: 1.7;
    color: #d0d0d0;
    font-size: 1rem;
}

.card ul {
    padding-left: 1.5rem;
}

.card li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.card li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--neon-green);
    font-size: 0.9rem;
}

/* Special card types */
.creator-card {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.creator-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--neon-cyan);
    box-shadow: 
        0 0 15px var(--neon-cyan),
        inset 0 0 10px rgba(0, 0, 0, 0.3);
    background: radial-gradient(
        circle at center,
        #1a1a1a,
        #0a0a0a
    );
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
}

.creator-avatar:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 25px var(--neon-cyan),
        0 0 35px var(--neon-cyan);
}

.creator-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.creator-info {
    flex: 1;
}

.creator-name {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px var(--neon-cyan);
}

.creator-handle {
    font-family: var(--font-secondary);
    color: var(--neon-pink);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.creator-bio {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.6;
    margin-top: 1rem;
}

.creator-contact {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.creator-contact li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #bbb;
}

.creator-contact li::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
}

.creator-contact li:nth-child(1)::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%2300ffff"><circle cx="8" cy="8" r="7" stroke="%2300ffff" stroke-width="1"/></svg>');
}

.creator-contact li:nth-child(2)::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23ff00ff"><path d="M12 2L8 7l4 4V7h-2V4l-2-2z"/></svg>');
}

.creator-contact li:nth-child(3)::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%237cff6b"><path d="M12 2l-3 3h2l3-3-2-2z"/></svg>');
}

/* Hero section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.7),
            transparent
        ),
        url('/images/racergirl-banner.jpg') center/cover;
    opacity: 0.7;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(
        to right,
        var(--neon-cyan),
        var(--neon-pink),
        var(--neon-green)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

/* Video background container */
/* Container that holds both the video and the foreground content */
.video-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* The video acting as the animation */
.video-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Forces the video to cover the screen without stretching out of proportion */
  z-index: -1; /* Pushes the video behind your text and buttons */
  filter: brightness(0.5); /* Dim the video */
}

/* Foreground content styles for the header */
.header-content {
  position: relative;
  z-index: 1; /* Places content safely on top of the video */
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  color: #ffffff;
}

@keyframes titleGlow {
    from {
        filter: drop-shadow(0 0 5px var(--neon-cyan));
    }
    to {
        filter: drop-shadow(0 0 15px var(--neon-pink));
    }
}

.hero-sub {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    color: #fff;
    line-height: 1.8;
}

/* Page headers */
.page-head {
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    position: relative;
}

.page-head h1 {
    display: inline-block;
    position: relative;
}

.page-head h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--neon-cyan);
    transition: width 0.5s ease;
}

.page-head h1:hover::after {
    width: 100%;
}

/* Grid with 2 columns for mission/vision etc */
.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Grid with 3 columns for team etc */
.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Grid with 4 columns */
.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--neon-cyan);
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn:hover {
    background: rgba(0, 30, 60, 0.5);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 20px var(--neon-cyan);
}

.btn:active {
    transform: translateY(-1px) scale(0.98);
}

.btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        linear-gradient(
            45deg,
            transparent,
            rgba(0, 255, 255, 0.2),
            transparent
        );
    transform: rotate(30deg);
    transition: transform 0.5s ease;
}

.btn:hover::before {
    transform: rotate(30deg) translate(50%, -50%);
}

/* Secondary button variant */
.btn-secondary {
    border-color: var(--neon-pink);
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(30, 0, 30, 0.5);
    box-shadow: 0 0 20px var(--neon-pink);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--neon-cyan);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.badge-primary { border-color: var(--neon-cyan); color: var(--neon-cyan); }
.badge-secondary { border-color: var(--neon-pink); color: var(--neon-pink); }
.badge-success { border-color: var(--neon-green); color: var(--neon-green); }
.badge-warning { border-color: var(--neon-yellow); color: var(--neon-yellow); }
.badge-danger { border-color: var(--neon-orange); color: var(--neon-orange); }

/* Inputs, selects, textareas */
input, select, textarea {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 6px;
    color: #fff;
    padding: 0.75rem;
    width: 100%;
    max-width: 500px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan);
    background: rgba(0, 0, 0, 0.6);
}

/* Form labels */
label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #ccc;
}

/* Email link styling - keep the existing functionality but adapt to theme */

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Ensure images in content are responsive */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

/* Blockquotes */
blockquote {
    border-left: 4px solid var(--neon-cyan);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #ccc;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
}

/* Code blocks */
pre, code {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 6px;
    padding: 1rem;
    font-family: 'Courier New', Courier, monospace;
    overflow-x: auto;
}

pre {
    margin: 1.5rem 0;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: rgba(0, 0, 0, 0.3);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

th {
    background: rgba(0, 255, 255, 0.1);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

tr:hover {
    background: rgba(0, 255, 255, 0.1);
}

/* Alert/notice boxes */
.alert {
    padding: 1.25rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-info {
    background: rgba(0, 50, 100, 0.3);
    border-left-color: var(--neon-cyan);
    color: #bbb;
}

.alert-warning {
    background: rgba(100, 50, 0, 0.3);
    border-left-color: var(--neon-yellow);
    color: #eee;
}

.alert-error {
    background: rgba(100, 0, 0, 0.3);
    border-left-color: var(--neon-orange);
    color: #fdd;
}

/* Ensure the racers girl banner and other existing images still work */
.racergirl-banner, .terri-avatar {
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

.racergirl-banner:hover, .terri-avatar:hover {
    transform: scale(1.02);
}

/* Override any existing conflicting styles from original CSS */
/* Reset some original styles that might conflict */
.card h2, .card h3, .card p, .card ul, .card li {
    color: inherit; /* Let our new styles take over */
    text-shadow: inherit;
}
/* Ensure text readability in cards */
.card, .card h2, .card h3, .card p, .card ul, .card li, .card a {
    color: #e0e6f0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

