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

body {
    font-family: 'Roboto Mono', monospace;
    background-color: #000000;
    color: #FFFFFF;
    overflow-x: hidden;

    /* Animated Grid Background */
    background-image: 
        linear-gradient(0deg, rgba(0, 255, 127, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 127, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: grid-move 30s linear infinite;
}

/* Scanline Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 127, 0.3), transparent);
    animation: scanline 7s linear infinite;
    z-index: 999;
    opacity: 0.7;
    pointer-events: none;
}

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

@keyframes scanline {
    0% { top: 0%; }
    100% { top: 100%; }
}

/* Custom Colors for Tailwind (used via @apply in components) */
.text-gold { color: #FFD700; }
.border-gold { border-color: #FFD700; }
.text-cyber-green { color: #00ff7f; }
.shadow-glow-gold { box-shadow: 0 0 15px #FFD700; }
.shadow-glow-red { box-shadow: 0 0 15px #DC2626; }
.shadow-glow-green { box-shadow: 0 0 15px #00ff7f; }

/* Typing Cursor */
.typed-cursor {
    color: #00ff7f;
    animation: blink 0.7s infinite;
}
@keyframes blink {
    50% { opacity: 0; }
}

/* Glitch Effect on Hero Name */
.glitch {
    position: relative;
    color: #fff;
    letter-spacing: 0.05em;
    animation: glitch-skew 1s infinite linear alternate-reverse;
}
.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}
.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #DC2626; /* Red */
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}
.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #FFD700; /* Gold */
    clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}
@keyframes glitch-skew {
    0% { transform: skew(0deg); }
    5% { transform: skew(0.5deg); }
    10% { transform: skew(-0.5deg); }
    15% { transform: skew(0.5deg); }
    20% { transform: skew(0deg); }
    100% { transform: skew(0deg); }
}
@keyframes glitch-anim-1 {
    0% { clip-path: polygon(0 2%, 100% 2%, 100% 33%, 0 33%); }
    50% { clip-path: polygon(0 45%, 100% 45%, 100% 65%, 0 65%); }
    100% { clip-path: polygon(0 80%, 100% 80%, 100% 100%, 0 100%); }
}
@keyframes glitch-anim-2 {
    0% { clip-path: polygon(0 67%, 100% 67%, 100% 98%, 0 98%); }
    50% { clip-path: polygon(0 15%, 100% 15%, 100% 35%, 0 35%); }
    100% { clip-path: polygon(0 50%, 100% 50%, 100% 70%, 0 70%); }
}


/* Timeline Styling */
.timeline-item {
    position: relative;
    padding-left: 3rem;
    border-left: 2px solid #374151; /* gray-700 */
}
.timeline-item:last-child {
    border-left: 2px solid transparent;
}
.timeline-icon {
    position: absolute;
    left: -1rem;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: #111827; /* gray-900 */
    border: 2px solid #FFD700;
}

/* Service Card (from Venture Section) */
.service-card {
    @apply bg-gray-900 p-6 border-l-4 transition-all duration-300;
}
.service-card:hover {
    @apply transform -translate-y-2;
}
.service-card:nth-child(1) { @apply border-red-600 shadow-lg shadow-red-600/20; }
.service-card:nth-child(2) { @apply border-gold shadow-lg shadow-yellow-400/20; }
.service-card:nth-child(3) { @apply border-cyber-green shadow-lg shadow-green-500/20; }


/* Platform Card */
.platform-card {
    @apply bg-gray-900 border border-gray-700 p-6 rounded-lg transition-all duration-300 text-center;
}
.platform-card:hover {
    @apply transform -translate-y-2 border-gold shadow-lg shadow-yellow-400/20;
}
.platform-logo {
    @apply h-20 w-20 bg-gray-800 border-2 border-dashed border-gray-600 rounded-full flex items-center justify-center text-gold text-3xl mb-4 mx-auto;
}

/* Blog Card */
.blog-card {
    @apply bg-gray-900/50 border border-gray-700 rounded-md overflow-hidden transition-all duration-300;
}
.blog-card:hover {
    @apply border-cyber-green shadow-lg shadow-green-500/20;
}

/* Blog Image Styles */
.blog-card-image-container {
    position: relative;
    height: 180px; /* You can adjust this height */
    overflow: hidden;
    background-color: #111; /* Fallback color */
}

.blog-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%); /* Default: black and white */
    transition: filter 0.4s ease-in-out, transform 0.4s ease-in-out;
}

/* On hover: colorize and zoom image slightly */
.blog-card:hover .blog-card-image {
    filter: grayscale(0%); /* On hover: show full color */
    transform: scale(1.05);
}

/* Hacker scanline overlay on image */
.blog-card-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Subtle repeating scanline */
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        rgba(0, 255, 127, 0.1) 2px,
        rgba(0, 0, 0, 0.1) 3px,
        rgba(0, 0, 0, 0) 4px
    );
    opacity: 0.3;
    transition: opacity 0.4s ease;
}

.blog-card:hover .blog-card-image-container::after {
    opacity: 0.1; /* Reduce overlay visibility on hover */
}
/* --- End Blog Image Styles --- */


.blog-card-header {
    @apply bg-gray-800 px-4 py-2 text-xs text-cyber-green border-b border-gray-700;
}
.blog-card-body {
    @apply p-6;
}
.read-more {
    @apply text-gold hover:text-white transition-colors duration-300 inline-block mt-4;
}
.read-more::before {
    content: '> ';
    color: #00ff7f; /* cyber-green */
}
.read-more::after {
    content: '_';
    animation: blink 0.7s infinite;
    display: inline-block;
    color: #00ff7f;
}