/*
Theme Name: Pixel Reality Landing
Theme URI: https://pixelreality.us
Author: Pixel Reality
Author URI: https://pixelreality.us
Description: Custom landing page theme for Pixel Reality
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pixel-reality
*/

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

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background-color: #000000;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 2rem 3rem;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
}

.logo-pixel {
    color: #ff6b6b;
    font-weight: 700;
}

.logo-reality {
    color: #ffffff;
    font-weight: 500;
}

/* Main Container */
.container {
    display: flex;
    min-height: 100vh;
    padding: 6rem 3rem 3rem;
}

/* Hero Section */
.hero-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-text {
    position: relative;
    font-size: clamp(4rem, 12vw, 10rem);
    font-family: 'Orbitron', 'Space Grotesk', sans-serif;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.03em;
    text-transform: none;
    display: flex;
    flex-direction: column;
}

.text-line {
    display: block;
}

/* Glitch Overlay Effect */
.glitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.glitch-text {
    display: block;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    font-family: inherit;
    background: linear-gradient(90deg, 
        #ff0080, 
        #00ffff, 
        #ffff00, 
        #00ff88,
        #ff0080,
        #8000ff,
        #00ffff,
        #ff0080
    );
    background-size: 400% 400%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glitchAnimation 1s steps(4) infinite, gradientShift 1.5s linear infinite;
    opacity: 0;
    filter: blur(1.5px);
    mix-blend-mode: screen;
}

.glitch-text:first-child {
    clip-path: polygon(0 0%, 100% 0%, 100% 35%, 0 35%);
    animation: glitchAnimation 1s steps(4) infinite, gradientShift 1.5s linear infinite, colorShift 0.8s steps(2) infinite;
    animation-delay: 0s;
}

.glitch-text:last-child {
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    animation: glitchAnimation 1s steps(4) infinite reverse, gradientShift 1.5s linear infinite reverse, colorShift 0.8s steps(2) infinite;
    animation-delay: 0.05s;
}

/* Add intense pulsing effect to main text */
.hero-text .text-line {
    animation: textPulse 2s ease-in-out infinite, textShake 0.5s ease-in-out infinite;
}

.hero-text .text-line:first-child {
    animation-delay: 0s;
}

.hero-text .text-line:last-child {
    animation-delay: 0.1s;
}

@keyframes textPulse {
    0%, 100% {
        opacity: 1;
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 0.2),
            0 0 20px rgba(0, 255, 255, 0.1);
    }
    50% {
        opacity: 0.98;
        text-shadow: 
            0 0 30px rgba(255, 255, 255, 0.3),
            0 0 40px rgba(255, 0, 128, 0.2);
    }
}

@keyframes textShake {
    0%, 100% {
        transform: translate(0, 0);
    }
    10% {
        transform: translate(-0.5px, 0.5px);
    }
    20% {
        transform: translate(0.5px, -0.5px);
    }
    30% {
        transform: translate(-0.5px, -0.5px);
    }
    40% {
        transform: translate(0.5px, 0.5px);
    }
    50% {
        transform: translate(-0.5px, 0.5px);
    }
    60% {
        transform: translate(0.5px, -0.5px);
    }
    70% {
        transform: translate(-0.5px, -0.5px);
    }
    80% {
        transform: translate(0.5px, 0.5px);
    }
    90% {
        transform: translate(-0.5px, 0.5px);
    }
}

@keyframes glitchAnimation {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(1) skewX(0deg);
        filter: blur(1.5px) hue-rotate(0deg);
    }
    1% {
        opacity: 0;
        transform: translate(0, 0) scale(1) skewX(0deg);
    }
    2% {
        opacity: 1;
        transform: translate(-12px, 3px) scale(1.03) skewX(-5deg);
        filter: blur(0px) hue-rotate(90deg);
    }
    4% {
        opacity: 0.9;
        transform: translate(10px, -4px) scale(0.97) skewX(5deg);
        filter: blur(2px) hue-rotate(180deg);
    }
    6% {
        opacity: 1;
        transform: translate(-8px, 2px) scale(1.02) skewX(-3deg);
        filter: blur(1px) hue-rotate(270deg);
    }
    8% {
        opacity: 0.95;
        transform: translate(15px, -3px) scale(0.98) skewX(4deg);
        filter: blur(0.5px) hue-rotate(360deg);
    }
    10% {
        opacity: 0;
        transform: translate(0, 0) scale(1) skewX(0deg);
        filter: blur(1.5px) hue-rotate(0deg);
    }
    12% {
        opacity: 0;
    }
    14% {
        opacity: 0.95;
        transform: translate(-15px, -2px) scale(1.04) skewX(-6deg);
        filter: blur(1px) hue-rotate(45deg);
    }
    16% {
        opacity: 0.85;
        transform: translate(12px, 5px) scale(0.96) skewX(7deg);
        filter: blur(2px) hue-rotate(135deg);
    }
    18% {
        opacity: 1;
        transform: translate(-10px, -4px) scale(1.02) skewX(-4deg);
        filter: blur(0.5px) hue-rotate(225deg);
    }
    20% {
        opacity: 0;
        transform: translate(0, 0) scale(1) skewX(0deg);
        filter: blur(1.5px) hue-rotate(0deg);
    }
    28% {
        opacity: 0;
    }
    30% {
        opacity: 0.9;
        transform: translate(18px, 2px) scale(1.05) skewX(8deg);
        filter: blur(1.5px) hue-rotate(60deg);
    }
    32% {
        opacity: 1;
        transform: translate(-14px, -5px) scale(0.95) skewX(-7deg);
        filter: blur(2.5px) hue-rotate(120deg);
    }
    34% {
        opacity: 0.85;
        transform: translate(11px, 4px) scale(1.03) skewX(5deg);
        filter: blur(0.8px) hue-rotate(180deg);
    }
    36% {
        opacity: 0;
        transform: translate(0, 0) scale(1) skewX(0deg);
        filter: blur(1.5px) hue-rotate(0deg);
    }
    48% {
        opacity: 0;
    }
    50% {
        opacity: 1;
        transform: translate(-20px, 3px) scale(1.06) skewX(-9deg);
        filter: blur(1px) hue-rotate(90deg);
    }
    52% {
        opacity: 0.9;
        transform: translate(16px, -2px) scale(0.94) skewX(6deg);
        filter: blur(3px) hue-rotate(270deg);
    }
    54% {
        opacity: 0.95;
        transform: translate(-13px, 5px) scale(1.04) skewX(-5deg);
        filter: blur(0.5px) hue-rotate(315deg);
    }
    56% {
        opacity: 0;
        transform: translate(0, 0) scale(1) skewX(0deg);
        filter: blur(1.5px) hue-rotate(0deg);
    }
    68% {
        opacity: 0;
    }
    70% {
        opacity: 0.95;
        transform: translate(14px, -6px) scale(1.03) skewX(7deg);
        filter: blur(2px) hue-rotate(150deg);
    }
    72% {
        opacity: 1;
        transform: translate(-17px, 4px) scale(0.97) skewX(-8deg);
        filter: blur(1px) hue-rotate(210deg);
    }
    74% {
        opacity: 0.85;
        transform: translate(19px, -3px) scale(1.05) skewX(9deg);
        filter: blur(1.5px) hue-rotate(300deg);
    }
    76% {
        opacity: 0;
        transform: translate(0, 0) scale(1) skewX(0deg);
        filter: blur(1.5px) hue-rotate(0deg);
    }
    88% {
        opacity: 0;
    }
    90% {
        opacity: 0.9;
        transform: translate(-16px, -4px) scale(1.04) skewX(-6deg);
        filter: blur(2.5px) hue-rotate(75deg);
    }
    92% {
        opacity: 1;
        transform: translate(13px, 6px) scale(0.96) skewX(8deg);
        filter: blur(0.8px) hue-rotate(165deg);
    }
    94% {
        opacity: 0.95;
        transform: translate(-18px, 2px) scale(1.03) skewX(-7deg);
        filter: blur(1.2px) hue-rotate(255deg);
    }
    96% {
        opacity: 0;
        transform: translate(0, 0) scale(1) skewX(0deg);
        filter: blur(1.5px) hue-rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translate(0, 0) scale(1) skewX(0deg);
        filter: blur(1.5px) hue-rotate(0deg);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 400% 50%;
    }
}

@keyframes colorShift {
    0%, 100% {
        filter: blur(1.5px) hue-rotate(0deg) saturate(1.5);
    }
    25% {
        filter: blur(2px) hue-rotate(90deg) saturate(2);
    }
    50% {
        filter: blur(1px) hue-rotate(180deg) saturate(1.8);
    }
    75% {
        filter: blur(2.5px) hue-rotate(270deg) saturate(1.6);
    }
}

/* Content Section */
.content-section {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4rem;
    padding-left: 3rem;
}

.description p {
    font-size: 1.125rem;
    line-height: 1.7;
    font-weight: 300;
    letter-spacing: 0.01em;
}

.contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-label {
    font-size: 1.125rem;
    font-weight: 400;
}

.contact-email {
    font-size: 1.125rem;
    font-weight: 300;
}

.contact-tagline {
    font-size: 1.125rem;
    font-weight: 300;
    color: #888888;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
        gap: 4rem;
    }

    .hero-section {
        min-height: 50vh;
    }

    .content-section {
        flex: none;
        padding-left: 0;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1.5rem 2rem;
    }

    .container {
        padding: 5rem 2rem 2rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .description p,
    .contact-label,
    .contact-email,
    .contact-tagline {
        font-size: 1rem;
    }

    .content-section {
        gap: 3rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem 1.5rem;
    }

    .container {
        padding: 4rem 1.5rem 2rem;
    }

    .hero-text {
        font-size: clamp(3rem, 15vw, 5rem);
    }

    .logo {
        font-size: 1rem;
    }
}

/* Performance optimization */
@media (prefers-reduced-motion: reduce) {
    .glitch-text {
        animation: none;
        opacity: 0.5;
    }
    
    .hero-text .text-line {
        animation: none;
    }
}
