/* === Metal Gear Solid - Tactical Espionage Theme === */
/* Color Palette: Military green, codec green, steel gray, alert orange */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #0a0f0a 0%, #101810 50%, #0c100c 100%);
    color: #c0d0c0;
    min-height: 100vh;
    line-height: 1.6;
}

/* --- Intro Section --- */
.intro-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
    gap: 60px;
    align-items: center;
}

.intro-text {
    flex: 1;
}

.main-character-title {
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #5a8a5a;
    margin-bottom: 10px;
}

.game-title {
    font-size: 2.5em;
    background: linear-gradient(90deg, #7ab87a, #5a9a5a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.character-name {
    font-size: 4em;
    color: #e0e8e0;
    text-shadow: 0 0 40px rgba(90, 138, 90, 0.3);
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.tag-line {
    font-size: 1.2em;
    font-style: italic;
    color: #80a080;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.brief-description {
    font-size: 1.1em;
    color: #a8b8a8;
    line-height: 1.8;
    border-left: 3px solid #5a8a5a;
    padding-left: 20px;
}

.intro-image-card {
    flex: 0 0 400px;
}

.intro-image-card img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border: 2px solid rgba(90, 138, 90, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(90, 138, 90, 0.15);
}

/* --- Masonry Grid (Column-wise Layout) --- */
.masonry-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    column-count: 3;
    column-gap: 25px;
}

/* Base Card Style */
.card {
    padding: 28px;
    border-radius: 4px;
    margin-bottom: 25px;
    break-inside: avoid;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(90, 138, 90, 0.12);
    background: rgba(12, 18, 12, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: inline-block;
    width: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(90, 138, 90, 0.15);
    z-index: 3;
}

/* Card Variants - Tactical Espionage Theme */
.bg-dark {
    background: linear-gradient(135deg, rgba(15, 22, 15, 0.95) 0%, rgba(10, 15, 10, 0.98) 100%);
}

.bg-gradient-1 {
    background: linear-gradient(135deg, rgba(50, 80, 50, 0.25) 0%, rgba(12, 18, 12, 0.95) 100%);
    border-top: 2px solid rgba(90, 140, 90, 0.4);
}

.bg-gradient-2 {
    background: linear-gradient(135deg, rgba(60, 90, 80, 0.25) 0%, rgba(10, 16, 14, 0.95) 100%);
    border-top: 2px solid rgba(90, 150, 130, 0.4);
}

.patriot-card {
    background: linear-gradient(135deg, rgba(80, 60, 40, 0.25) 0%, rgba(15, 12, 10, 0.95) 100%);
    border: 1px solid rgba(180, 140, 80, 0.25);
}

.codec-card {
    background: linear-gradient(to bottom right, rgba(20, 35, 20, 0.95), rgba(10, 18, 10, 0.98));
    border-left: 4px solid #5a9a5a;
}

.boss-card {
    background: linear-gradient(135deg, rgba(100, 50, 30, 0.25) 0%, rgba(15, 12, 10, 0.95) 100%);
    border: 1px solid rgba(200, 100, 60, 0.3);
}

.summary-card {
    background: linear-gradient(135deg, rgba(90, 138, 90, 0.1) 0%, rgba(10, 15, 10, 0.95) 100%);
    border: 1px solid rgba(90, 138, 90, 0.2);
    text-align: center;
}

/* Typography inside cards */
h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #90c890, #70a870);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border-bottom: 2px solid rgba(90, 138, 90, 0.25);
    padding-bottom: 10px;
    letter-spacing: 1px;
}

h4 {
    font-size: 1.25em;
    margin-bottom: 12px;
    color: #88b888;
}

.card p {
    margin-bottom: 15px;
    text-align: left;
    font-size: 1em;
    color: #b8c8b8;
    line-height: 1.75;
}

.card b {
    color: #90b890;
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.card ul {
    margin-left: 10px;
    list-style: none;
}

.card ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    font-size: 0.95em;
    color: #a8b8a8;
}

.card ul li::before {
    content: "►";
    color: #5a9a5a;
    position: absolute;
    left: 0;
    font-size: 0.7em;
    top: 3px;
}

.note {
    font-size: 0.88em;
    font-style: italic;
    color: #80a080;
    display: block;
    margin-top: 12px;
    line-height: 1.6;
}

/* --- Quote Section --- */
.quote-section {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 40px;
    text-align: center;
}

.quote-section blockquote {
    font-size: 1.8em;
    font-style: italic;
    color: #90c890;
    padding: 50px 60px;
    position: relative;
    line-height: 1.6;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.quote-section blockquote::before {
    content: '"';
    font-size: 5em;
    color: rgba(90, 138, 90, 0.25);
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: Georgia, serif;
}

.quote-section cite {
    display: block;
    margin-top: 25px;
    font-size: 0.6em;
    color: #80a080;
    font-style: normal;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* --- Gallery --- */
.gallery {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border: 2px solid rgba(90, 138, 90, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 35px rgba(90, 138, 90, 0.25);
    border-color: rgba(120, 180, 120, 0.5);
}

/* --- Responsive Design --- */
@media (max-width: 1200px) {
    .intro-container {
        flex-direction: column;
        text-align: center;
    }

    .brief-description {
        border-left: none;
        border-top: 3px solid #5a8a5a;
        padding-left: 0;
        padding-top: 20px;
    }

    .intro-image-card {
        flex: 0 0 auto;
    }

    .masonry-grid {
        column-count: 2;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .character-name {
        font-size: 2.5em;
    }

    .masonry-grid {
        column-count: 1;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .quote-section blockquote {
        font-size: 1.3em;
        padding: 30px;
    }
}
