@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&family=Special+Elite&family=Bebas+Neue&display=swap');

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

:root {
    --bg-paper: #F5F1E8;
    --bg-white: #FFFFFF;
    --bg-aged: #E8E4D9;
    --text-black: #1A1A1A;
    --text-gray: #4A4A4A;
    --text-faded: #8B8B8B;
    --stamp-red: #C41E3A;
    --stamp-blue: #003D82;
    --redacted-black: #000000;
    --highlight-yellow: #FFF59D;
    --border-dark: #2B2B2B;
    --shadow: rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Courier Prime', monospace;
    background: var(--bg-paper);
    color: var(--text-black);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.02) 2px, rgba(0,0,0,.02) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,.02) 2px, rgba(0,0,0,.02) 4px);
    pointer-events: none;
    opacity: 0.5;
    z-index: 1;
}

.page-wrapper {
    position: relative;
    z-index: 2;
}

header {
    background: var(--bg-white);
    border-bottom: 3px solid var(--redacted-black);
    box-shadow: 0 4px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-classification {
    background: var(--redacted-black);
    color: var(--bg-white);
    text-align: center;
    padding: 8px;
    font-size: 11px;
    letter-spacing: 3px;
    font-weight: bold;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--text-black);
}

.logo-badge {
    width: 60px;
    height: 60px;
    background: var(--stamp-red);
    border-radius: 50%;
    border: 3px solid var(--redacted-black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', cursive;
    color: var(--bg-white);
    font-size: 14px;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 1px;
}

.logo-text {
    font-family: 'Bebas Neue', cursive;
    font-size: 28px;
    letter-spacing: 3px;
    color: var(--stamp-red);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-black);
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 1px;
    padding: 8px 16px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover {
    border: 2px solid var(--stamp-red);
    color: var(--stamp-red);
}

nav a.active {
    background: var(--redacted-black);
    color: var(--bg-white);
    border: 2px solid var(--redacted-black);
}

.mobile-menu-toggle {
    display: none;
    background: var(--redacted-black);
    color: var(--bg-white);
    border: none;
    padding: 10px 15px;
    font-size: 24px;
    cursor: pointer;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
}

.document-container {
    background: var(--bg-white);
    padding: 60px 80px;
    box-shadow: 0 10px 40px var(--shadow);
    border: 3px solid var(--redacted-black);
    margin-bottom: 40px;
    position: relative;
}

.classification-header {
    background: var(--redacted-black);
    color: var(--bg-white);
    padding: 15px 20px;
    margin: -60px -80px 40px -80px;
    text-align: center;
    font-weight: bold;
    letter-spacing: 5px;
    font-size: 14px;
}

.top-secret-stamp {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 150px;
    height: 150px;
    border: 5px solid var(--stamp-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(15deg);
    opacity: 0.9;
    z-index: 10;
    animation: stampFadeIn 0.8s ease;
}

.stamp-text {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: var(--stamp-red);
    letter-spacing: 2px;
    line-height: 1.3;
    font-family: 'Special Elite', cursive;
}

.document-id {
    text-align: center;
    font-size: 11px;
    color: var(--text-faded);
    letter-spacing: 2px;
    margin-bottom: 30px;
}

h1 {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 30px;
    color: var(--text-black);
    letter-spacing: 2px;
    font-family: 'Courier Prime', monospace;
}

h2 {
    font-size: 32px;
    font-weight: bold;
    margin: 40px 0 20px 0;
    color: var(--stamp-red);
    letter-spacing: 2px;
    font-family: 'Bebas Neue', cursive;
}

h3 {
    font-size: 24px;
    font-weight: bold;
    margin: 30px 0 15px 0;
    color: var(--text-black);
    letter-spacing: 1px;
}

p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
    text-align: justify;
}

.typewriter {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 3s steps(40, end);
}

.redacted-section {
    background: var(--redacted-black);
    color: var(--bg-white);
    padding: 20px;
    margin: 30px 0;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.redacted-section:hover {
    background: var(--text-gray);
}

.redacted-section::before {
    content: '[REDACTED - HOVER TO REVEAL]';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    letter-spacing: 2px;
    opacity: 0.7;
    pointer-events: none;
}

.redacted-content {
    opacity: 0;
    transition: opacity 0.3s ease;
    line-height: 1.8;
}

.redacted-section:hover .redacted-content {
    opacity: 1;
}

.redacted-section:hover::before {
    opacity: 0;
}

.redacted-inline {
    background: var(--redacted-black);
    color: var(--redacted-black);
    padding: 2px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.redacted-inline:hover {
    background: var(--text-gray);
    color: var(--bg-white);
}

.warning-box {
    border: 3px solid var(--stamp-red);
    padding: 25px;
    margin: 30px 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(196, 30, 58, 0.05) 10px,
        rgba(196, 30, 58, 0.05) 20px
    );
}

.warning-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--stamp-red);
    margin-bottom: 15px;
    letter-spacing: 2px;
    font-family: 'Bebas Neue', cursive;
}

.warning-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-gray);
}

.clearance-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.clearance-item {
    background: var(--bg-aged);
    padding: 20px;
    border-left: 4px solid var(--redacted-black);
    transition: all 0.3s ease;
}

.clearance-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px var(--shadow);
}

.clearance-label {
    font-size: 12px;
    color: var(--text-faded);
    margin-bottom: 8px;
    letter-spacing: 1px;
    font-weight: bold;
}

.clearance-value {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-black);
}

.dossier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin: 50px 0;
}

.dossier-card {
    background: var(--bg-aged);
    border: 3px solid var(--border-dark);
    padding: 30px;
    position: relative;
    transition: all 0.3s ease;
    transform: rotate(-1deg);
}

.dossier-card:nth-child(2) {
    transform: rotate(1deg);
}

.dossier-card:nth-child(3) {
    transform: rotate(-0.5deg);
}

.dossier-card:hover {
    transform: rotate(0deg) translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow);
}

.dossier-stamp {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    border: 3px solid var(--stamp-red);
    color: var(--stamp-red);
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 2px;
    transform: rotate(15deg);
    font-family: 'Special Elite', cursive;
}

.dossier-card:nth-child(2) .dossier-stamp {
    border-color: var(--stamp-blue);
    color: var(--stamp-blue);
}

.dossier-card:nth-child(3) .dossier-stamp {
    border-color: var(--redacted-black);
    color: var(--redacted-black);
}

.dossier-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-black);
    font-family: 'Bebas Neue', cursive;
    letter-spacing: 2px;
}

.dossier-case-number {
    font-size: 12px;
    color: var(--text-faded);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.dossier-description {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 25px;
}

.dossier-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--redacted-black);
    color: var(--bg-white);
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 14px;
    border: 3px solid var(--redacted-black);
    transition: all 0.3s ease;
    font-family: 'Bebas Neue', cursive;
}

.dossier-btn:hover {
    background: var(--bg-white);
    color: var(--redacted-black);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.security-protocols {
    background: var(--bg-aged);
    padding: 40px;
    margin: 50px 0;
    border: 2px solid var(--border-dark);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.security-item {
    background: var(--bg-white);
    padding: 25px;
    border-left: 5px solid var(--stamp-blue);
    transition: all 0.3s ease;
}

.security-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px var(--shadow);
}

.security-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.security-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-black);
}

.security-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-gray);
}

.security-link {
    color: var(--stamp-blue);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.security-link:hover {
    color: var(--stamp-red);
    text-decoration: underline;
}

.operational-guidelines {
    background: var(--bg-white);
    border: 3px solid var(--stamp-red);
    padding: 40px;
    margin: 50px 0;
}

.guidelines-list {
    list-style: none;
    counter-reset: guidelines;
}

.guidelines-list li {
    counter-increment: guidelines;
    padding: 20px;
    margin-bottom: 15px;
    background: var(--bg-aged);
    border-left: 5px solid var(--stamp-red);
    position: relative;
    padding-left: 70px;
}

.guidelines-list li::before {
    content: counter(guidelines);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 32px;
    font-weight: bold;
    color: var(--stamp-red);
    font-family: 'Special Elite', cursive;
}

.highlight-yellow {
    background: var(--highlight-yellow);
    padding: 2px 6px;
}

footer {
    background: var(--redacted-black);
    color: var(--bg-white);
    padding: 60px 40px 30px 40px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--stamp-red);
    margin-bottom: 20px;
    font-family: 'Bebas Neue', cursive;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--bg-aged);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--stamp-red);
}

.footer-classification {
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid var(--text-gray);
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--text-faded);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes stampFadeIn {
    from {
        opacity: 0;
        transform: rotate(15deg) scale(0.8);
    }
    to {
        opacity: 0.9;
        transform: rotate(15deg) scale(1);
    }
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.fade-in {
    animation: fadeIn 0.8s ease;
}

@media (max-width: 1024px) {
    .container {
        padding: 40px 30px;
    }

    .document-container {
        padding: 40px 50px;
    }

    .classification-header {
        margin-left: -50px;
        margin-right: -50px;
    }

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

@media (max-width: 768px) {
    .header-content {
        padding: 15px 20px;
        flex-wrap: wrap;
    }

    nav {
        display: none;
        width: 100%;
        margin-top: 20px;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .document-container {
        padding: 30px 25px;
    }

    .classification-header {
        margin-left: -25px;
        margin-right: -25px;
        font-size: 10px;
    }

    .top-secret-stamp {
        width: 100px;
        height: 100px;
        top: 20px;
        right: 20px;
    }

    .stamp-text {
        font-size: 12px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    .dossier-card {
        transform: rotate(0deg);
    }

    .security-protocols,
    .operational-guidelines {
        padding: 25px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 20px;
    }

    .logo-badge {
        width: 50px;
        height: 50px;
        font-size: 11px;
    }

    h1 {
        font-size: 24px;
    }

    .clearance-info {
        grid-template-columns: 1fr;
    }
}

.image-placeholder {
    background: var(--bg-aged);
    border: 2px dashed var(--border-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-faded);
    font-size: 14px;
    font-family: 'Courier Prime', monospace;
    text-align: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '📷';
    position: absolute;
    font-size: 60px;
    opacity: 0.1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

img.hero-image {
    width: 100%;
    max-width: 1200px;
    height: auto;
    margin: 30px auto;
    display: block;
    border: 3px solid var(--border-dark);
    box-shadow: 0 4px 15px var(--shadow);
    background: var(--bg-aged);
}

img.evidence-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 30px auto;
    display: block;
    border: 2px solid var(--border-dark);
    box-shadow: 0 2px 10px var(--shadow);
    background: var(--bg-aged);
}

img.icon-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px var(--shadow));
}

img.dossier-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto 20px auto;
    display: block;
    border: 2px solid var(--border-dark);
    box-shadow: 0 2px 8px var(--shadow);
    background: var(--bg-aged);
}

.stamp-image {
    width: 150px;
    height: 150px;
}
