@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&family=Share+Tech+Mono&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto Mono', monospace;
    background-color: #212529;
    color: #e0e0e0;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* 3. CUSTOM BACKGROUNDS */
.bg-dark-wasteland {
    background-color: #343a40;
    border-bottom: 2px solid #8B4513;
}

.bg-dark-distressed {
    background-color: #2c3034;
    position: relative;
    overflow: hidden;
}
.bg-dark-distressed::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://www.transparenttextures.com/patterns/crissxcross.png');
    opacity: 0.05;
    pointer-events: none;
    mix-blend-mode: overlay;
    z-index: 0;
}

.bg-grey-distressed {
    background-color: #3b4045;
    position: relative;
    overflow: hidden;
}
.bg-grey-distressed::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://www.transparenttextures.com/patterns/dust-and-scratches.png');
    opacity: 0.1;
    pointer-events: none;
    mix-blend-mode: soft-light;
    z-index: 0;
}

.bg-darker-distressed {
    background-color: #1a1e21;
    border: 1px solid #495057;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.3);
}

/* 4. TEXT & EFFECTS */
.text-warning { color: #ffc107 !important; }
.text-light-distressed { color: #e9ecef; opacity: 0.85; }

.font-monospace {
    font-family: 'Share Tech Mono', monospace !important;
}

.glow-effect {
    text-shadow: 0 0 5px #ffc107, 0 0 10px #ffc107, 0 0 15px #ffc107, 0 0 20px #ff8c00;
}

.text-shadow-distressed {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* 5. NAVBAR */
.navbar-brand {
    letter-spacing: 2px;
    font-weight: 700;
    font-family: 'Share Tech Mono', monospace;
}
.nav-link {
    text-transform: uppercase;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    font-weight: 500;
}
.nav-link:hover {
    color: #ffc107 !important;
    text-shadow: 0 0 5px #ffc107;
}

.btn-outline-warning {
    border-color: #ffc107;
    color: #ffc107;
    font-weight: 600;
}
.btn-outline-warning:hover {
    background-color: #ffc107;
    color: #212529;
    box-shadow: 0 0 10px rgba(255,193,7,0.6);
}

/* 6. HERO */
.hero-section {
    background-image: url('/img/wasteland_skyline.png');
    background-size: cover;
    background-position: center;
    min-height: 80vh;
    position: relative;
    padding: 5rem 1rem;
    display: flex;
    align-items: center;
    z-index: 1;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.6);
    z-index: -1;
}

.hero-title {
    font-family: 'Share Tech Mono', monospace;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #ffc107;
    text-shadow: 0 0 15px rgba(255,193,7,0.7);
}
.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.btn-wasteland-cta {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
    font-weight: bold;
    text-transform: uppercase;
    padding: 1rem 2.5rem;
    border-radius: 0;
    box-shadow: 0 0 15px rgba(255,193,7,0.5);
    transition: all 0.3s ease;
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: 1px;
}
.btn-wasteland-cta:hover {
    background-color: #e0a800;
    border-color: #e0a800;
    color: #1a1e21;
    box-shadow: 0 0 25px rgba(255,193,7,0.8);
    transform: translateY(-2px);
}

/* 7. IMAGES */
.img-fluid {
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    max-width: 100%;
    height: auto;
}

/* Base card */
.card {
    border-radius: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #2c3034;
    border: 1px solid #495057;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Image */
.card-img-top {
    border-bottom: 1px solid #495057;
    object-fit: cover;
    height: 200px;
}

/* Body */
.card-body {
    background-color: rgba(0, 0, 0, 0.25);
    border-top: 1px solid #495057;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card,
.card *,
.card-body,
.card-body * {
    color: #FFFFFF !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9) !important;
}

/* Title – Yellow Glow */
.card .card-title {
    color: #ffc107 !important;
    text-shadow: 0 0 8px rgba(255,193,7,0.8) !important;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-family: 'Share Tech Mono', monospace;
}

/* Body Text – Guaranteed White */
.card .card-text,
.card p,
.card-body p,
.card-body .card-text {
    color: #FFFFFF !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9) !important;
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 1rem;
    opacity: 1 !important;
}

/* Links & Buttons */
.card a,
.card .btn {
    color: #ffc107 !important;
    text-decoration: underline;
    font-weight: 600;
    margin-top: auto;
    align-self: flex-start;
}
.card a:hover,
.card .btn:hover {
    color: #e0a800 !important;
    text-shadow: 0 0 6px rgba(255,193,7,0.6);
}

/* Kill Bootstrap's muted text */
.text-muted,
.text-secondary,
.text-light,
.text-body {
    color: #FFFFFF !important;
}

/* Hover */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    z-index: 2;
}

/* Legacy selector (your original) */
#projects .card p.card-text {
    color: #FFFFFF !important;
    text-shadow: 1px 1px 5px rgba(0,0,0,1.0) !important;
}

/* 9. FOOTER */
footer {
    border-top: 2px solid #8B4513;
    padding: 2rem 0;
    margin-top: 4rem;
}
.social-icons a {
    font-size: 1.5rem;
    transition: color 0.3s ease;
    color: #e9ecef;
}
.social-icons a:hover {
    color: #e0a800 !important;
    text-shadow: 0 0 8px rgba(255,193,7,0.5);
}

/* 10. RESPONSIVE */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .btn-wasteland-cta { padding: 0.8rem 2rem; }
}

/* Navbar Specific Glow */
.navbar-glow {
    /* Subtle bottom border glow */
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.3); 
}