:root {
    --color-background: #000000;
    --color-text: white;
    --color-accent-red: #cc0000; /* Bright Blood Red */
    --color-dark-red: #660000;   /* Dried Blood/Maroon */
    --color-content-bg: #111111;
    --font-aggressive: 'Arial Black', Impact, sans-serif; 
}

/* Keyframes for flowing blood effect */
@keyframes bloodFlow {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 100px; /* Move the pattern diagonally */
    }
}

body {
  background-image: url('images/bloodbackground.jpg');
  background-repeat: no-repeat;
  background-size: 100% 100% ;
  background-attachment: fixed;
}

/* Global Screen Noise/Grain Overlay (Fixed position for screen effect) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000; /* High z-index */
    pointer-events: none;
    
    /* Subtle noise pattern using repeating gradients */
    background-image: repeating-linear-gradient(
        0deg, 
        rgba(255, 255, 255, 0.03) 0px, 
        rgba(0, 0, 0, 0.05) 1px
    );
    opacity: 0.15;
    mix-blend-mode: overlay;
}

/* Global Typography */
h1, h2 {
    font-family: var(--font-aggressive);
    color: var(--color-accent-red);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 8px rgba(204, 0, 0, 0.7);
}

a {
    color: var(--color-accent-red);
    text-decoration: none;
    transition: color 0.3s, text-shadow 0.3s;
}

a:hover {
    color: var(--color-text);
    text-shadow: 0 0 5px var(--color-text);
}

/* Blood Border Wrapper (The main container) */
.blood-border-wrapper {
    width: 95%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px;
    background-color: var(--color-content-bg);
    
    /* Complex Shadow for intense, unsettling red glow (Blood effect) - Increased complexity */
    box-shadow: 
        /* Deep Inner Shadows for texture (Increased darkness) */
        inset 0 0 30px rgba(0, 0, 0, 1), 
        /* Multiple Red Layers for depth and glow */
        0 0 0 8px var(--color-dark-red), 
        0 0 20px var(--color-dark-red), 
        0 0 50px var(--color-accent-red),
        0 0 100px rgba(204, 0, 0, 0.7);
    
    position: relative;
    overflow: hidden; 
    /* Added complexity: tilted edge look using transform */
    transform: perspective(1000px) rotateX(1deg);
    transition: box-shadow 0.5s;
    opacity: 90%; 
}

/* Blood Drip Layer (::after) - Increased intensity and adjusted blend mode */
.blood-border-wrapper::after {
    content: '';
    position: absolute;
    top: -5px; 
    left: -5px;
    right: -5px;
    bottom: -5px;
    
    /* Using repeating linear gradients for liquid/streaky blood flow texture */
    background: repeating-linear-gradient(
        135deg, 
        rgba(204, 0, 0, 0.25) 0px, 
        rgba(204, 0, 0, 0.4) 3px, 
        transparent 8px, 
        transparent 15px
    );
    background-size: 100px 100px; 
    
    opacity: 0.3; /* Increased opacity for more visual presence */
    z-index: 2; 
    pointer-events: none;
    mix-blend-mode: soft-light; /* Changed blend mode for a slicker look */
    
    animation: bloodFlow 15s linear infinite; /* Slower, smoother flow animation */
}



/* Ensure content is above the watermark */
header, main, footer {
    position: relative;
    z-index: 4; /* Higher z-index */
}


/* Header & Hero Section */
.hero {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 50px;
    /* Redefined border for a ripped/distressed look */
    border-top: 5px double var(--color-accent-red); /* Changed to double for complexity */
    border-bottom: 5px double var(--color-accent-red);
    position: relative;
    animation: pulseGlow 4s infinite alternate;
}

/* Add an extra layer of distressed appearance (scanlines) to the hero section */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: repeating-linear-gradient(
        0deg, /* Changed to horizontal */
        rgba(204, 0, 0, 0.15) 0px, 
        rgba(204, 0, 0, 0.15) 2px, 
        transparent 2px, 
        transparent 15px
    ); 
    opacity: 0.3;
    pointer-events: none;
    mix-blend-mode: soft-light;
}

@keyframes pulseGlow {
    from {
        box-shadow: 0 5px 15px rgba(204, 0, 0, 0.2);
    }
    to {
        box-shadow: 0 5px 25px rgba(204, 0, 0, 0.6);
    }
}

@keyframes briefTextGlitch {
    /* Define rapid, continuous flickering effect */
    0%, 2%, 4%, 8%, 10%, 14%, 18%, 20%, 24%, 30%, 32%, 36%, 40%, 45%, 50%, 55%, 60%, 62%, 68%, 70%, 74%, 80%, 82%, 86%, 90%, 94%, 98%, 100% {
        /* Normal Glow State (mostly on) */
        opacity: 1;
        transform: none;
        color: var(--color-accent-red);
        text-shadow: 
            0 0 10px var(--color-accent-red),
            0 0 20px rgba(204, 0, 0, 0.5),
            2px 2px 0px var(--color-dark-red);
    }
    1%, 9%, 19%, 35%, 61%, 71%, 91% {
        /* Dim/Off state */
        opacity: 0.2;
        text-shadow: none;
        transform: none;
        color: var(--color-dark-red);
    }
    3%, 15%, 28%, 42%, 65%, 78%, 95% {
        /* Bright Flash/Glitch state */
        opacity: 0.95;
        transform: translateX(1px) skewX(0.5deg);
        color: white;
        text-shadow: 
            0 0 15px white,
            1px 1px 0 var(--color-dark-red);
    }
}

.hero h1 {
    font-size: 5.5em; /* Slightly larger */
    margin-bottom: 0;
    /* Enhanced Text Shadow/Glow - added more aggressive offset */
    text-shadow: 
        0 0 12px var(--color-accent-red),
        0 0 25px rgba(204, 0, 0, 0.7),
        4px 4px 0px var(--color-dark-red), 
        -4px -4px 0px rgba(0, 0, 0, 0.5); 
    animation: briefTextGlitch 3s infinite; /* Adjusted speed */
    letter-spacing: 5px; /* Increased spacing */
}

.hero p {
    font-style: italic;
    color: #999;
    letter-spacing: 1px;
}

/* Main Content Sections */
.content-section {
    padding: 40px 30px;
    margin-bottom: 70px; 
    
    /* New: Use multiple borders/outlines for complexity */
    border: 3px ridge var(--color-dark-red); /* Changed to ridge for 3D effect */
    outline: 4px double var(--color-accent-red); /* Secondary outline */
    outline-offset: -15px; /* Bring it further inside */

    background-color: #080808; 
    position: relative;
    
    /* Keep slight rotation for distress and complexity */
    transform: perspective(1000px) rotateX(2deg) rotateZ(-0.5deg); 
    transition: transform 0.3s, box-shadow 0.3s;
    
    /* NEW COMPLEXITY: Inner shadow for depth */
    box-shadow: inset 0 0 20px rgba(204, 0, 0, 0.2); 
}

.content-section:nth-child(even) {
     transform: perspective(1000px) rotateX(2deg) rotateZ(0.5deg); 
}

.content-section:hover {
    transform: perspective(1000px) rotateX(0deg) rotateZ(0deg) scale(1.01); 
    box-shadow: 0 0 35px rgba(204, 0, 0, 0.8); 
}

.content-section h2 {
    /* Simulate 'classified' or tape look */
    border-bottom: none; 
    padding-bottom: 0; 
    margin-top: 0;
    
    background-color: var(--color-dark-red);
    color: var(--color-text);
    padding: 10px 15px;
    margin: -40px -30px 20px -30px; 
    border-left: 5px solid var(--color-accent-red);
    /* More complex clip-path for a jagged, ripped edge effect */
    clip-path: polygon(0% 0%, 95% 0%, 100% 20%, 98% 80%, 100% 100%, 0% 100%); 
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.8);
}

/* About Section Specifics */
.about-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.about-image {
    flex-shrink: 0;
    width: 350px;
    max-width: 100%;
    height: auto;
    /* Enhanced border and styling */
    border: 8px groove var(--color-accent-red); /* Groove border for depth */
    padding: 10px; /* Increased padding */
    background-color: black;
    
    box-shadow: 0 0 25px var(--color-accent-red);
    object-fit: cover;
    
    /* Enhanced Filter for film grain/distress and slight skew */
    filter: sepia(0.3) contrast(1.3) grayscale(0.2) hue-rotate(-5deg); 
    transform: skewX(-1deg);
}

.about-content p {
    flex-grow: 1;
    line-height: 1.7;
    text-align: justify;
}

/* Social Links Section */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #220000;
    border: 3px double var(--color-dark-red); /* Double border */
    border-radius: 2px; /* Sharper corners */
    text-transform: uppercase;
    font-weight: bold;
    font-family: var(--font-aggressive);
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    
    /* Inner shadow for engraved look */
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.9);
}

.social-link:hover {
    background-color: var(--color-accent-red);
    color: var(--color-background);
    transform: scale(1.05) perspective(500px) rotateX(5deg); /* Added 3D hover effect */
    border-color: var(--color-text);
    box-shadow: 0 0 25px var(--color-accent-red), 0 0 5px var(--color-text);
}

.social-link .icon {
    margin-right: 12px;
    font-size: 1.5em;
}

/* Footer */
footer {
    text-align: center;
    padding: 25px; /* Increased padding */
    margin-top: 80px; 
    border-top: 2px ridge var(--color-accent-red); /* Changed to ridge */
    font-size: 0.9em;
    color: #666; /* Slightly lighter text for readability in footer */
    background-color: #050505;
}

/* Media Queries */
@media (max-width: 900px) {
    .about-content {
        flex-direction: column;
        align-items: center;
    }

    .about-image {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 600px) {
    .blood-border-wrapper {
        margin: 20px auto;
        padding: 15px;
        transform: none; /* Remove tilt on small screens */
    }
    
    .hero h1 {
        font-size: 3em;
        letter-spacing: 3px;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
    }
    
    .content-section h2 {
        /* Adjust margin for smaller padding */
        margin: -40px -15px 20px -15px;
    }

    /* Remove 3D effects on small screens for stability */
    .blood-border-wrapper, .content-section, .content-section:nth-child(even), .about-image {
        transform: none !important;
    }
}


.ghostface1 {

margin-right: 1000px;
margin-top;


}

@font-face {
  font-family: scream; /* set name */
  src: url(Scream-Real.otf); /* url of the font */
}

p {
  font-family: scream; /* use font */
  color: white;
}

h1 {
  font-family: scream; /* use font */
}

h2 {
  font-family: scream; /* use font */
}

a {
  font-family: scream; /* use font */
}

/*Scroll bar*/
html {
  scrollbar-color: red darkred;
}

/* overlay that forces a user interaction to start audio */
.enter-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.90);
  z-index: 9999;
  pointer-events: auto;
}

/* spooky button */
.enter-btn {
  background: #6c1a1a;
  color: white;
  font-family: scream;
  font-size: 1.25rem;
  padding: 18px 28px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
  letter-spacing: 2px;
}
.enter-btn:active { transform: translateY(1px); }

.red-letter {
  color: red;
  text-shadow: 0 0 6px #ff0000;
  font-weight: bold;
}

* {
  cursor: url('images/knifeog.png') 5 5, none !important;
}

