/* **********************************************************
 * add custom styles after imports below
 * ********************************************************** */

@import "default.css";
@import "layout.css";
@import "menu.css";
@import "queries.css";
@import "animations.css";
/* New animations file */

/* **********************************************************
  * to import a font, use the @import option, you can find
  * lots of font options at fonts.google.com for example.
  * ********************************************************** */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

html {
    font-family: 'Space Mono', 'Courier New', monospace;
    scroll-behavior: smooth;
}

/* **********************************************************
  * Customizing
  *
  * changes to default settings like colors, typography,
  * spacing can be made in default.css
  *
  * other custom settings, start below
  *
  * ********************************************************** */

* {
    line-height: 120%;
    font-weight: 400;
}

:root {
    /* Modified color palette - keeping mainly white but adding accents */
    --color-bg: #ffffff;
    --color-fg: #111111;
    --color-terminal-green: #00ff9d;
    --color-terminal-red: #ff2d55;
    --color-terminal-blue: #ffffff;
    --color-terminal-dim: #777777;
    --color-header-bg: rgba(255, 255, 255, 0.9);

    /* Glitch effect variables */
    --glitch-strength: 2px;

    /* Unsettling spacing */
    --spacing-irregular: clamp(1rem, 3vw, 2.5rem);
}


body {
    background-color: var(--color-bg);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.04) 2px, rgba(0, 0, 0, 0.04) 4px);
    position: relative;
    cursor: crosshair;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(transparent 0px,
            transparent 1px,
            rgba(0, 0, 0, 0.03) 1px,
            rgba(0, 0, 0, 0.03) 2px);
    pointer-events: none;
    z-index: 500;
}


.terminal-text {
    font-family: 'Space Mono', 'Courier New', monospace;
    letter-spacing: 0.05em;
}

.dim-text {
    color: var(--color-terminal-dim);
}

.bright-text {
    color: var(--color-0);
    font-weight: 700;
}

.green-text {
    color: var(--color-terminal-green);
}

.red-text {
    color: var(--color-terminal-red);
}

.text-blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.terminal-cursor::after {
    content: "▋";
    animation: blink 1s step-end infinite;
}

/* Enhanced image zooming and lightbox */
.zoom {
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.zoom:hover {
    transform: scale(1.02);
    filter: brightness(1.05);
}

#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: rgba(255, 255, 255, 0.5); */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#lightbox.show {
    opacity: 1;
    pointer-events: auto;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    /* border: 2px solid rgba(255, 255, 255, 0.1); */
    /* box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); */
}

/* Enhanced section transitions */
section {
    margin-bottom: var(--spacing-l);
    transition: opacity 0.5s ease;
}

/* Enhanced heading styles */
h1,
h2,
h3 {
    position: relative;
    overflow: hidden;
}

/* Cyberpunk-inspired heading */
h1 {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    margin-bottom: var(--spacing-irregular);
    color: var(--color-fg);
}

h2{
    font-family: 'Space Mono', monospace;
}

h1::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-terminal-green), var(--color-terminal-blue), transparent);
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--color-terminal-green), transparent);
}



/* Enhanced terminal text */
.terminal-text {
    font-family: 'Space Mono', monospace;
    letter-spacing: 0.05em;
    position: relative;
}

/* Enhanced links */
a.terminal-link {
    position: relative;
    color: var(--color-fg);
    text-decoration: none;
    padding: 0 2px;
    transition: color 0.2s ease;
    overflow: hidden;
}

a.terminal-link::before {
    content: ">";
    position: absolute;
    left: -12px;
    color: var(--color-terminal-green);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

a.terminal-link:hover {
    color: var(--color-terminal-green);
}

a.terminal-link:hover::before {
    opacity: 1;
    transform: translateX(8px);
}




/* Enhance glitch effect */
.glitch {
    position: relative;
    color: var(--color-fg);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.glitch::before {
    left: var(--glitch-strength);
    text-shadow: -1px 0 var(--color-terminal-red);
    animation: glitch-anim-1 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: calc(-1 * var(--glitch-strength));
    text-shadow: 1px 0 var(--color-terminal-blue);
    animation: glitch-anim-2 2s infinite linear alternate-reverse;
}

/* Cyberpunk-inspired buttons */
.cyberpunk-button {
    background-color: transparent;
    border: 1px solid var(--color-terminal-dim);
    color: var(--color-fg);
    font-family: 'Space Mono', monospace;
    padding: 0.5rem 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cyberpunk-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 157, 0.2), transparent);
    transition: all 0.5s ease;
}

.cyberpunk-button:hover {
    border-color: var(--color-terminal-green);
    color: var(--color-terminal-green);
}

.cyberpunk-button:hover::before {
    left: 100%;
}

/* Unsettling section transitions */
.terminal-section {
    position: relative;
    padding-top: var(--spacing-irregular);
    transition: opacity 0.5s ease;
}

.terminal-section::before {
    content: "> initializing...";
    display: block;
    color: var(--color-terminal-dim);
    font-family: 'Space Mono', monospace;
    font-size: var(--font-size-s);
    margin-bottom: var(--spacing-xs);
    animation: fadeOut 1s forwards;
    animation-delay: 2s;
}

/* Futuristic cards */
.cyber-card {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: var(--spacing-m);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cyber-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-terminal-green), var(--color-terminal-blue), transparent);
}

.cyber-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Unsettling cursor effect */
.terminal-cursor {
    position: relative;
}

.terminal-cursor::after {
    content: "▋";
    color: var(--color-terminal-green);
    animation: blink 1s step-end infinite;
}

/* Enhanced progress bar */
.progress-bar {
    position: fixed;
    top: var(--header__height);
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-terminal-green), var(--color-terminal-blue));
    z-index: 1000;
    width: 0;
    transition: width 0.1s ease;
}

/* Disturbing loading animation */
.loading-animation {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 20px;
}

.loading-animation::after {
    content: "...";
    color: var(--color-terminal-dim);
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {

    0%,
    20% {
        content: ".";
    }

    40%,
    60% {
        content: "..";
    }

    80%,
    100% {
        content: "...";
    }
}

/* Blade Runner inspired image effects */
.cyber-image {
    position: relative;
    overflow: hidden;
}

.cyber-image img {
    filter: contrast(1.05) brightness(1.05);
    transition: all 0.5s ease;
}

.cyber-image:hover img {
    filter: contrast(1.1) brightness(1.1) saturate(1.2);
}

.cyber-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(0, 255, 157, 0.1), rgba(0, 200, 255, 0.1));
    opacity: 0;
    transition: opacity 0.5s ease;
}

.cyber-image:hover::after {
    opacity: 1;
}

/* Unsettling reveal animation */
.unsettling-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.unsettling-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Add slight noise to backgrounds */
/* .noise-bg {
    position: relative;
}

.noise-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
} */


/* Gradient blur overlay for bottom of page */
.scroll-reveal-overlay {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to top, rgba(255,255,255,1) 25%, rgba(255,255,255,0) 100%);
  
  pointer-events: none;
  z-index: 1000;
}



.gradient-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
      circle at center,
      rgba(229, 255, 114, 0.8) 0%,
      rgba(255, 255, 255, 0) 20%
    );
    pointer-events: none;
    opacity: 0.8;
    z-index: 0;
  }



/* Better mobile experience */
@media (orientation: portrait) {
    * {
        font-size: 14px;
    }

    .terminal-text {
        letter-spacing: 0.03em;
    }

    /* Simplify animations on mobile for performance */
    .glitch::before,
    .glitch::after {
        display: none;
    }
}