/* True Eye of Providence CSS - Realistic Blinking Eye */

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

body {
    font-family: 'Courier New', 'JetBrains Mono', monospace;
    background-color: #000;
    color: #00ff41;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Canvas for Digital Rain Animation */
#matrixRain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}

/* Eye of Providence SVG Container */
.eye-container {
    position: relative;
    margin: 80px 0;
}

.eye-svg {
    width: 350px;
    height: 300px;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 40px rgba(255, 0, 0, 0.95));
}

/* SVG Elements */
.iris {
    transform-origin: 150px 150px;
}

.pupil {
    transform-origin: 150px 150px;
    animation: blink-pupil 4.5s ease-in-out infinite;
}

.eyelid-top {
    animation: blink-top 4.5s ease-in-out infinite;
    transform-origin: 150px 50px;
}

.eyelid-bottom {
    animation: blink-bottom 4.5s ease-in-out infinite;
    transform-origin: 150px 250px;
}

.glint {
    animation: glint 4.5s ease-in-out infinite;
}

/* ZAMOLXIS Title */
.zamolxis-title {
    font-size: 4rem;
    color: #00ff41;
    text-transform: uppercase;
    letter-spacing: 15px;
    margin-top: 50px;
    text-shadow: 0 0 10px #00ff41, 0 0 30px #00ff41;
    animation: flicker 5s ease-in-out infinite;
}

.subtitle {
    font-size: 2rem;
    color: #ffffff;
    margin-top: 15px;
    letter-spacing: 8px;
    text-shadow: 0 0 10px #ffffff;
}

/* Manifest Container */
.manifest-container {
    margin: 60px 0;
    padding: 35px;
    border: 2px solid #00ff41;
    border-radius: 15px;
    background: rgba(0, 20, 0, 0.8);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.4s ease;
}

.manifest-container:hover {
    border-color: #ff0000;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.6);
}

.manifest-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #00ff41;
    text-shadow: 0 0 8px #00ff41;
    transition: all 0.4s ease;
}

.manifest-container:hover .manifest-text {
    color: #ff0000;
    text-shadow: 0 0 15px #ff0000;
}

/* Navigation */
.matrix-nav {
    display: flex;
    gap: 30px;
    margin-top: 60px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-link {
    color: #00ff41;
    text-decoration: none;
    padding: 12px 30px;
    border: 1px solid #00ff41;
    border-radius: 5px;
    transition: all 0.3s;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
}

.nav-link:hover {
    background: #00ff41;
    color: #000;
    box-shadow: 0 0 20px #00ff41;
}

/* Animations - Realistic Eye Blinking */

/* Blink Cycle - Discrete animation every 4.5s */
/* at 0%, 45%, 55%, 100% scale is 1; at 50%, scaleY is 0.1 */
@keyframes blink-pupil {
    0%, 45%, 55%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scaleY(0.1);
    }
}

@keyframes blink-top {
    0%, 45%, 55%, 100% {
        transform: translateY(0);
    }
    47% {
        transform: translateY(100px);
    }
    53% {
        transform: translateY(-100px);
    }
}

@keyframes blink-bottom {
    0%, 45%, 55%, 100% {
        transform: translateY(0);
    }
    47% {
        transform: translateY(-100px);
    }
    53% {
        transform: translateY(100px);
    }
}

@keyframes glint {
    0%, 45%, 55%, 100% {
        opacity: 0.9;
    }
    47% {
        opacity: 0.2;
    }
    53% {
        opacity: 0.2;
    }
}

@keyframes flicker {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 10px #00ff41, 0 0 30px #00ff41;
    }
    95% {
        opacity: 0.95;
    }
    96% {
        opacity: 0.1;
        text-shadow: 0 0 5px #00ff41;
    }
    97% {
        opacity: 0.95;
    }
}

/* Paranoid CSS Layer - Chaos Overlay */

/* Paranoid Color Palette */
:root {
    --paranoia-red: #8a0000;
    --paranoia-violet: #4a004a;
    --paranoia-green: #39ff14;
    --paranoia-invert: #ff00ff;
}

/* Screen Glitch Effects */
@keyframes glitch-flash {
    0%, 100% { background-color: transparent; }
    1% { background-color: rgba(138, 0, 0, 0.2); }
    2% { background-color: rgba(74, 0, 74, 0.2); }
    3% { background-color: rgba(57, 255, 20, 0.2); }
    4% { background-color: rgba(255, 0, 255, 0.2); }
    5% { background-color: rgba(138, 0, 0, 0.3); }
}

@keyframes invert-flash {
    0%, 96%, 100% { filter: none; }
    97% { filter: invert(1); }
    98% { filter: invert(0); }
    99% { filter: invert(1); }
}

/* Glitch Text Effect */
@keyframes text-glitch {
    0% { text-shadow: 2px 0 var(--paranoia-red), -2px 0 var(--paranoia-violet); }
    25% { text-shadow: -2px 0 var(--paranoia-red), 2px 0 var(--paranoia-violet); }
    50% { text-shadow: 2px 0 var(--paranoia-green), -2px 0 var(--paranoia-red); }
    75% { text-shadow: -2px 0 var(--paranoia-green), 2px 0 var(--paranoia-violet); }
    100% { text-shadow: 2px 0 var(--paranoia-red), -2px 0 var(--paranoia-violet); }
}

@keyframes text-glitch-2 {
    0%, 100% { clip-path: inset(0 0 0 0); }
    20% { clip-path: inset(10% 0 80% 0); }
    40% { clip-path: inset(80% 0 10% 0); }
    60% { clip-path: inset(10% 0 10% 0); }
    80% { clip-path: inset(50% 0 50% 0); }
}

/* Shaky/Erratic Border Animations */
@keyframes shaky-border {
    0% { transform: translate(0, 0) skew(0deg); }
    10% { transform: translate(-2px, 2px) skew(1deg); }
    20% { transform: translate(2px, -2px) skew(-1deg); }
    30% { transform: translate(-3px, 1px) skew(2deg); }
    40% { transform: translate(3px, -1px) skew(-2deg); }
    50% { transform: translate(-1px, 3px) skew(1deg); }
    60% { transform: translate(1px, -3px) skew(-1deg); }
    70% { transform: translate(-4px, 2px) skew(3deg); }
    80% { transform: translate(4px, -2px) skew(-3deg); }
    90% { transform: translate(-2px, 1px) skew(2deg); }
    100% { transform: translate(0, 0) skew(0deg); }
}

/* Randomly Shifting Shadows */
@keyframes shifting-shadow {
    0% { box-shadow: 0 0 20px var(--paranoia-red); }
    25% { box-shadow: 5px 5px 30px var(--paranoia-violet); }
    50% { box-shadow: -5px -5px 30px var(--paranoia-green); }
    75% { box-shadow: 5px -5px 30px var(--paranoia-red); }
    100% { box-shadow: -5px 5px 30px var(--paranoia-violet); }
}

/* Apply Paranoid Effects */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    animation: glitch-flash 8s infinite;
}

body {
    animation: invert-flash 15s infinite;
}

.zamolxis-title {
    animation: text-glitch 4s linear infinite, flicker 5s ease-in-out infinite;
    color: var(--paranoia-green);
}

.subtitle {
    animation: text-glitch-2 6s infinite;
}

.manifest-container {
    animation: shaky-border 3s ease-in-out infinite;
    border: 2px solid var(--paranoia-red);
    box-shadow: 0 0 20px var(--paranoia-violet);
    position: relative;
    overflow: hidden;
}

.manifest-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--paranoia-red), transparent);
    animation: shifting-shadow 4s infinite;
}

.manifest-container:hover {
    animation: shaky-border 0.5s ease-in-out infinite;
    border-color: var(--paranoia-green);
    box-shadow: 0 0 40px var(--paranoia-red);
}

.manifest-container:hover::before {
    animation: shifting-shadow 1s infinite;
}

.nav-link {
    transition: all 0.2s;
    position: relative;
}

.nav-link:hover {
    animation: shaky-border 0.3s ease-in-out infinite;
    background: var(--paranoia-red);
    border-color: var(--paranoia-green);
    color: #000;
    box-shadow: 0 0 30px var(--paranoia-red), 0 0 50px var(--paranoia-violet);
}

/* Random border flashes on container */
.manifest-container::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(138, 0, 0, 0.1) 10px,
        rgba(138, 0, 0, 0.1) 20px
    );
    pointer-events: none;
    animation: shifting-shadow 10s infinite linear;
}

/* Mobile Responsiveness - Subtle Paranoid Effects */
@media (max-width: 768px) {
    .zamolxis-title {
        font-size: 2.5rem;
        letter-spacing: 8px;
        animation: text-glitch 8s linear infinite, flicker 5s ease-in-out infinite;
        text-shadow: 0 0 5px var(--paranoia-green), 0 0 10px var(--paranoia-green);
    }
    
    .subtitle {
        font-size: 1.2rem;
        animation: none;
        text-shadow: 0 0 5px #ffffff;
    }
    
    .eye-svg {
        width: 250px;
        height: 220px;
        filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.5));
    }
    
    .manifest-container {
        animation: shaky-border 6s ease-in-out infinite;
        padding: 20px;
        border: 1px solid var(--paranoia-red);
        margin: 30px 15px;
    }
    
    .manifest-container::before {
        animation: shifting-shadow 8s infinite;
    }
    
    .manifest-container:hover {
        animation: shaky-border 2s ease-in-out infinite;
    }
    
    .manifest-text {
        font-size: 0.9rem;
        color: var(--paranoia-green);
        text-shadow: 0 0 5px var(--paranoia-green);
    }
    
    .manifest-container:hover .manifest-text {
        color: var(--paranoia-red);
    }
    
    .matrix-nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-link {
        width: 100%;
        animation: none;
        transition: all 0.4s;
    }
    
    .nav-link:hover {
        animation: shaky-border 1s ease-in-out infinite;
        background: var(--paranoia-red);
        box-shadow: 0 0 15px var(--paranoia-red);
    }
    
    body::before {
        animation: glitch-flash 16s infinite;
    }
    
    body {
        animation: invert-flash 30s infinite;
    }
}

/* Extra subtle on small phones */
@media (max-width: 480px) {
    .zamolxis-title {
        font-size: 2rem;
        letter-spacing: 6px;
        animation: text-glitch 12s linear infinite, flicker 5s ease-in-out infinite;
    }
    
    .eye-svg {
        width: 200px;
        height: 180px;
        filter: drop-shadow(0 0 15px rgba(255, 0, 0, 0.3));
    }
    
    .manifest-container {
        animation: shaky-border 9s ease-in-out infinite;
        padding: 15px;
    }
    
    .manifest-container:hover {
        animation: shaky-border 3s ease-in-out infinite;
    }
    
    .manifest-text {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .nav-link {
        padding: 10px 20px;
    }
    
    body::before {
        animation: glitch-flash 24s infinite;
    }
    
    body {
        animation: invert-flash 45s infinite;
    }
}

/* Target: 375px (iPhone 12/13/14) */
@media (max-width: 375px) {
    .zamolxis-title {
        font-size: 1.8rem;
        letter-spacing: 4px;
        animation: text-glitch 14s linear infinite, flicker 5s ease-in-out infinite;
    }
    
    .eye-svg {
        width: 180px;
        height: 160px;
        filter: drop-shadow(0 0 12px rgba(255, 0, 0, 0.25));
    }
    
    .manifest-container {
        animation: shaky-border 10s ease-in-out infinite;
        padding: 12px;
        margin: 20px 10px;
    }
    
    .manifest-container:hover {
        animation: shaky-border 3.5s ease-in-out infinite;
    }
    
    .manifest-text {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .nav-link {
        padding: 12px 24px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    body::before {
        animation: glitch-flash 28s infinite;
    }
    
    body {
        animation: invert-flash 50s infinite;
    }
}

/* Target: 320px (iPhone SE, small Android) */
@media (max-width: 320px) {
    .zamolxis-title {
        font-size: 1.5rem;
        letter-spacing: 3px;
        animation: text-glitch 16s linear infinite, flicker 5s ease-in-out infinite;
    }
    
    .eye-svg {
        width: 150px;
        height: 130px;
        filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.2));
    }
    
    .manifest-container {
        animation: shaky-border 12s ease-in-out infinite;
        padding: 10px;
        margin: 15px 8px;
    }
    
    .manifest-container:hover {
        animation: shaky-border 4s ease-in-out infinite;
    }
    
    .manifest-text {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    .nav-link {
        padding: 12px 20px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    body::before {
        animation: glitch-flash 32s infinite;
    }
    
    body {
        animation: invert-flash 60s infinite;
    }
}
