/*
Theme Name: Masud Cyberpunk
Theme URI: https://masudr.pro.bd
Author: Masud Rana
Description: A premium, futuristic cyberpunk single-page portfolio theme.
Version: 1.0
*/

/* Core styles are handled by Tailwind CDN in header.php for this version. 
   Custom CSS from the React app is below. */

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0a12;
}
::-webkit-scrollbar-thumb {
    background: #1a1a2e;
    border: 1px solid #00f3ff;
}

/* Selection */
::selection {
    background: #00f3ff;
    color: #000;
}

/* 3D Retro Grid */
.perspective-container {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.retro-grid {
    position: absolute;
    width: 200%;
    height: 150%;
    left: -50%;
    bottom: -50%;
    background-image: 
        linear-gradient(to right, rgba(0, 243, 255, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(188, 19, 254, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: rotateX(70deg);
    transform-origin: center top;
    animation: grid-move 4s linear infinite;
    mask-image: linear-gradient(to bottom, transparent 0%, black 50%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 50%);
}

@keyframes grid-move {
    0% { background-position: 0 0; }
    100% { background-position: 0 60px; }
}

/* Glitch Effect */
.glitch-text {
    position: relative;
}
.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.glitch-text::before {
    left: 2px;
    text-shadow: -1px 0 #ff00ff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}
.glitch-text::after {
    left: -2px;
    text-shadow: -1px 0 #00f3ff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(38px, 9999px, 81px, 0); }
    20% { clip: rect(4px, 9999px, 16px, 0); }
    40% { clip: rect(74px, 9999px, 42px, 0); }
    60% { clip: rect(15px, 9999px, 86px, 0); }
    80% { clip: rect(61px, 9999px, 3px, 0); }
    100% { clip: rect(31px, 9999px, 92px, 0); }
}
@keyframes glitch-anim2 {
    0% { clip: rect(21px, 9999px, 6px, 0); }
    20% { clip: rect(66px, 9999px, 14px, 0); }
    40% { clip: rect(28px, 9999px, 78px, 0); }
    60% { clip: rect(10px, 9999px, 53px, 0); }
    80% { clip: rect(93px, 9999px, 20px, 0); }
    100% { clip: rect(45px, 9999px, 34px, 0); }
}

/* Floating Shapes */
.tech-square {
    position: absolute;
    border: 1px solid rgba(0, 243, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
    backdrop-filter: blur(2px);
}
