:root {
    --bg-color: #080808;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --border-color: #333333;
    --accent-color: #ffffff; /* Strict monochrome accent, or maybe a very subtle blue */
    --font-main: 'Montserrat', sans-serif;
    --spacing-unit: 20px;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-left: 1px solid var(--border-color);
}

::-webkit-scrollbar-thumb {
    background: #222;
    border: 2px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Custom Cursor: Crosshair */
    cursor: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 5V19M5 12H19' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E") 12 12, crosshair;
}

/* Custom Pointer for Links (Target Lock style) */
a, button, .social-btn, .project-card, .owner-signature, .cursor-hover {
    cursor: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='5' y='5' width='14' height='14' stroke='%23FFFFFF' stroke-width='2'/%3E%3Crect x='11' y='11' width='2' height='2' fill='%23FFFFFF'/%3E%3C/svg%3E") 12 12, pointer !important;
}

/* Spotlight Effect */
.spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    /* Default background before JS takes over */
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0) 300px);
}


/* Background Elements - hidden for strict design */
.bg-elements {
    display: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header Structure */
.header {
    padding: 80px 0;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: flex-end;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
    position: relative;
}

/* Owner Signature */
.owner-signature {
    display: inline-block;
    color: #444;
    text-decoration: none;
    font-size: 0.7em;
    font-weight: 500;
    letter-spacing: 2px;
    margin-left: 15px;
    transition: color 0.2s ease;
    vertical-align: 1px;
}

.owner-signature:hover {
    color: var(--text-primary);
}

/* Social Sidebar */
.social-sidebar {
    position: fixed;
    right: 40px;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.social-btn {
    width: 50px;
    height: 50px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    text-decoration: none;
}

.social-btn svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.social-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.social-btn:hover svg {
    transform: scale(1.1);
}

/* Tooltip */
.social-btn .tooltip {
    position: absolute;
    right: 65px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 5px 10px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    visibility: hidden;
}

.social-btn:hover .tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    visibility: visible;
    border-color: var(--text-primary);
}

/* Brand Name */
.brand-name {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: fit-content; /* Fix: Hover area only on text */
}

.brand-name .big-text {
    font-size: 8rem;
    font-weight: 700;
    line-height: 0.8;
    letter-spacing: -0.02em; /* Slight tightening for the rest */
}

.brand-name .indent {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 4px;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-left: 5px;
}

.brand-name .accent {
    color: var(--text-primary);
    font-weight: 600;
}

/* Tags / Creative Buttons */
.tags-container {
    display: flex;
    gap: 0;
    margin-top: 40px;
}

.creative-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    border-right: none;
    color: var(--text-secondary);
    padding: 15px 30px;
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.creative-btn:last-child {
    border-right: 1px solid var(--border-color);
}

.creative-btn:hover {
    background: var(--text-primary);
    color: var(--bg-color);
    border-color: var(--text-primary);
}

/* Header Description */
.header-desc {
    text-align: right;
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 400px;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Projects Grid - Strict Table Layout */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.project-card {
    display: grid;
    grid-template-columns: 120px 2fr 3fr auto; /* Status | Title | Desc | Arrow */
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding: 30px 40px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
    position: relative;
    cursor: pointer;
    background: transparent;
}

.project-card:hover {
    background-color: #111;
}

/* Hide old decorative elements */
.card-decoration, .card-glow {
    display: none;
}

/* Status Column */
.card-status {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    display: inline-block;
    text-align: center;
    color: var(--text-secondary);
    width: fit-content;
}

/* Content */
.card-content {
    display: contents; /* Flattens the content to be part of the main grid */
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: -0.5px;
    width: fit-content; /* Fix glitch width to match text exactly */
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 400;
}

.card-arrow {
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: transform 0.2s ease, color 0.2s ease;
}

.project-card:hover .card-arrow {
    color: var(--text-primary);
    transform: translateX(5px);
}

.project-card:hover .project-title {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

/* Footer */
.footer {
    padding: 20px 0 20px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Preloader - XP Desktop Style */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Real Bliss Wallpaper */
    background: url('assets/background.jpg') no-repeat center center fixed;
    background-size: cover;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    overflow: hidden;
}

/* Green Hill (Removed - using real image) */
#preloader::before {
    display: none;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Immediate hide if disabled */
.no-preloader #preloader {
    display: none !important;
}

/* XP Desktop Icons */
.xp-desktop-icons {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    height: 90%; /* Allow wrapping to next column */
    gap: 25px;
    z-index: 1;
    align-content: flex-start;
}

/* Activation Watermark */
.activation-watermark {
    position: absolute;
    bottom: 50px;
    right: 50px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Segoe UI', 'Arial', sans-serif;
    pointer-events: none;
    z-index: 1000;
    user-select: none;
    text-align: left;
}

.watermark-title {
    font-size: 24px;
    font-weight: 500;
    display: block;
    margin-bottom: 2px;
}

.watermark-text {
    font-size: 14px;
    display: block;
    max-width: 300px;
}

.xp-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70px;
    cursor: pointer; /* Changed to pointer */
    opacity: 1; /* Full opacity by default for images */
    border: 1px solid transparent; /* Reserve space for border */
    border-radius: 2px;
}

.xp-icon:hover {
    background-color: rgba(0, 0, 255, 0.2); /* Selection effect */
    border: 1px dotted rgba(255, 255, 255, 0.5);
}

.xp-icon-img {
    width: 32px;
    height: 32px;
    margin-bottom: 5px;
    object-fit: contain;
}

.xp-icon-text {
    color: white;
    font-family: 'Tahoma', sans-serif;
    font-size: 11px;
    text-shadow: 1px 1px 1px black;
    text-align: center;
    line-height: 1.2;
    padding: 2px;
}

.xp-icon:hover .xp-icon-text {
    background-color: #0054E3; /* Text background on selection */
}

/* Remove CSS-only Icons styles */

/* XP Taskbar */
.xp-taskbar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(to bottom, #245EDC 0%, #3E80F3 5%, #245EDC 10%, #1A4AB5 100%);
    border-top: 1px solid #5793FF;
    display: flex;
    align-items: center;
    padding: 0;
    z-index: 100;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.3);
}

.xp-start-btn {
    width: 100px; /* Reduced width */
    height: 100%;
    background: linear-gradient(to bottom, #3C8018 0%, #489824 10%, #3C8018 100%);
    border-radius: 0 10px 10px 0; /* Classic curve */
    box-shadow: 2px 0 5px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center; /* Center content */
    padding-left: 5px; /* Reduced padding */
    cursor: default;
    margin-right: 10px;
    position: relative;
    overflow: hidden; /* Ensure content stays inside */
}

.xp-start-logo {
    font-style: italic;
    font-weight: bold;
    color: white;
    font-family: 'Tahoma', sans-serif;
    font-size: 16px; /* Slightly smaller */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 4px; /* Space between icon and text */
}

.xp-start-icon {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    width: 14px;
    height: 14px;
    transform: rotate(-10deg); /* Tilt like XP logo */
}
.xp-win-sq { width: 6px; height: 6px; }
.win-red { background: #E44829; border-radius: 1px 0 0 0; }
.win-green { background: #56A522; border-radius: 0 1px 0 0; }
.win-blue { background: #2A6AD6; border-radius: 0 0 0 1px; }
.win-yellow { background: #F4BB29; border-radius: 0 0 1px 0; }


.xp-taskbar-divider {
    width: 2px;
    height: 20px;
    background: rgba(0,0,0,0.2);
    border-right: 1px solid rgba(255,255,255,0.1);
    margin: 0 5px;
}

.xp-task-items {
    flex: 1;
    display: flex;
    align-items: center;
    padding-left: 5px;
}

.xp-task-btn {
    width: 160px;
    height: 24px;
    background: #1F50B6; /* Active dark blue */
    border-radius: 3px;
    box-shadow: inset 1px 1px 0 rgba(0,0,0,0.2), 1px 1px 0 rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    padding: 0 8px;
    cursor: default;
}
.xp-task-btn:hover {
    background: #3065D3;
}
.xp-task-btn.active {
    background: #174092; /* Pressed look */
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.5);
}

.xp-task-icon {
    font-family: monospace;
    color: white;
    font-size: 10px;
    border: 1px solid white;
    padding: 0 2px;
    background: black;
    margin-right: 6px;
}

.xp-task-text {
    color: white;
    font-family: 'Tahoma', sans-serif;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xp-tray {
    background: #0B79E1;
    height: 100%;
    padding: 0 15px;
    display: flex;
    align-items: center;
    border-left: 1px solid #144085;
    box-shadow: inset 1px 0 2px rgba(0,0,0,0.2);
}

.xp-clock {
    color: white;
    font-family: 'Tahoma', sans-serif;
    font-size: 11px;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.2);
}

/* Start Menu */
.xp-start-menu {
    position: absolute;
    bottom: 30px; /* Above taskbar */
    left: 0;
    width: 380px;
    height: 480px;
    background: #fff;
    border-radius: 5px 5px 0 0;
    box-shadow: 2px -2px 5px rgba(0,0,0,0.4);
    display: none; /* Hidden by default */
    flex-direction: column;
    z-index: 99;
    border: 1px solid #0046BC;
    overflow: hidden;
}

.xp-start-menu.active {
    display: flex;
}

.start-header {
    height: 60px;
    background: linear-gradient(to bottom, #156AE8, #184CC4);
    display: flex;
    align-items: center;
    padding: 0 10px;
    border-bottom: 2px solid #E55400; /* Orange line */
}

.user-avatar {
    width: 44px;
    height: 44px;
    background: #D8E4F8;
    border: 2px solid #fff;
    border-radius: 4px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    color: white;
    font-family: 'Tahoma', sans-serif;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

.start-body {
    flex: 1;
    display: flex;
    background: #fff;
}

.start-left {
    width: 50%;
    padding: 10px 5px;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.start-right {
    width: 50%;
    background: #D3E5FA;
    border-left: 1px solid #95BDEB;
    padding: 10px 5px;
    display: flex;
    flex-direction: column;
}

.start-item {
    display: flex;
    align-items: center;
    padding: 5px;
    cursor: default;
    height: 36px;
    margin-bottom: 2px;
}

.start-item:hover {
    background-color: #316AC5;
    color: white;
}

.start-item:hover .start-text-main { color: white; }
.start-item:hover .start-text-sub { color: #eee; }

.start-icon {
    width: 28px;
    height: 28px;
    margin-right: 8px;
    object-fit: contain;
}

.start-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.start-text-main {
    font-family: 'Tahoma', sans-serif;
    font-size: 11px;
    color: #333;
    font-weight: bold;
}

.start-text-sub {
    font-family: 'Tahoma', sans-serif;
    font-size: 10px;
    color: #888;
}

.start-separator {
    height: 1px;
    background: #D3D3D3;
    margin: 5px 10px;
}

.right-item {
    display: flex;
    align-items: center;
    padding: 3px 5px;
    height: 28px;
    margin-bottom: 2px;
}
.right-item:hover {
    background-color: #316AC5;
    color: white;
}
.right-item:hover .right-text { color: white; }

.right-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    object-fit: contain;
}

.right-text {
    font-family: 'Tahoma', sans-serif;
    font-size: 11px;
    color: #111;
    line-height: 1.1;
}

.start-footer {
    height: 40px;
    background: linear-gradient(to bottom, #184CC4, #156AE8);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 10px;
    border-top: 2px solid #E55400; /* Orange line */
}

.shutdown-btn {
    display: flex;
    align-items: center;
    color: white;
    font-family: 'Tahoma', sans-serif;
    font-size: 11px;
    padding: 5px 10px;
    cursor: pointer;
}
.shutdown-btn:hover {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}

/* Terminal Window - XP Style */
.terminal-window {
    width: 90%;
    max-width: 700px;
    height: 400px;
    background: #000000;
    border-radius: 8px 8px 0 0; /* Rounded top corners only */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Consolas', 'Lucida Console', monospace;
    border: 3px solid #0054E3; /* XP Blue Border */
    position: absolute; /* Changed to absolute for dragging */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center initially */
    z-index: 50; /* Ensure terminal is above icons */
}

/* CRT Scanline Effect - Kept for retro feel, but made subtle */
.terminal-window::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 10;
}

/* Noise Effect - Removed for cleaner XP look */
.terminal-window::before {
    display: none;
}

.terminal-header {
    background: linear-gradient(to bottom, #0058EE 0%, #3593FF 4%, #288EFF 18%, #127DFF 44%, #0369FC 100%); /* XP Luna Blue Gradient */
    padding: 6px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Push controls to right */
    border-bottom: none;
    height: 30px;
}

.terminal-controls {
    display: flex;
    gap: 2px;
}

.control-btn {
    width: 21px;
    height: 21px;
    border-radius: 3px;
    border: 1px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    font-family: sans-serif;
    font-weight: bold;
    cursor: default;
    opacity: 1;
    box-shadow: inset 1px 1px 0px rgba(255,255,255,0.3), 1px 1px 2px rgba(0,0,0,0.2);
}

.control-min { 
    background: linear-gradient(to bottom, #4492F6, #1A54B7);
    border-color: #164094;
}
.control-min::after { content: "_"; position: relative; top: -3px; }

.control-max { 
    background: linear-gradient(to bottom, #4492F6, #1A54B7);
    border-color: #164094;
}
.control-max::after { content: "☐"; font-size: 12px; }

.control-close { 
    background: linear-gradient(to bottom, #E96D4B, #C23316);
    border-color: #8C2410;
    margin-left: 2px;
}
.control-close::after { content: "X"; font-size: 10px; text-shadow: 0 1px 0 rgba(0,0,0,0.3); }

.terminal-title {
    color: #fff;
    font-family: 'Tahoma', sans-serif;
    font-size: 13px;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
    margin-left: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.terminal-title::before {
    content: "cmd"; /* Fake Icon */
    font-family: monospace;
    font-size: 10px;
    background: #000;
    padding: 0 2px;
    border: 1px solid #fff;
}

.terminal-body {
    flex: 1;
    padding: 5px;
    overflow-y: auto;
    color: #cccccc;
    font-size: 14px;
    line-height: 1.2;
    background-color: #000;
    font-family: 'Consolas', 'Lucida Console', monospace;
}

/* Custom Scrollbar for Terminal */
.terminal-body::-webkit-scrollbar {
    width: 16px; /* XP style scrollbar width */
}
.terminal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-left: 1px solid #d4d4d4;
}
.terminal-body::-webkit-scrollbar-thumb {
    background-color: #cdcdcd;
    border: 1px solid #fff;
    box-shadow: inset 1px 1px 0 #f0f0f0, inset -1px -1px 0 #a0a0a0;
}
.terminal-body::-webkit-scrollbar-button {
    display: block;
    height: 16px;
    background-color: #f1f1f1;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6h8l-4 4-4-4z' fill='%23606060'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.terminal-line {
    margin-bottom: 2px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.terminal-prompt {
    color: #cccccc;
    font-weight: normal;
    margin-right: 0;
}

.terminal-path {
    display: none; /* Hide old path style */
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: #cccccc;
    margin-left: 0;
    vertical-align: text-bottom;
}

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

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Responsive */
@media (max-width: 1024px) {
    .header {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .header-desc {
        text-align: left;
        max-width: 100%;
    }

    .brand-name .big-text {
        font-size: 15vw;
    }
    
    .project-card {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 25px;
    }
    
    .card-content {
        display: block;
    }
    
    .project-title {
        margin-bottom: 5px;
    }
    
    .card-arrow {
        display: none;
    }
    
    .card-status {
        margin-bottom: 15px;
    }
    
    .owner-label {
        left: 0;
    }

    /* Mobile Social Sidebar */
    .social-sidebar {
        right: 20px;
        bottom: 20px;
        flex-direction: row;
        gap: 15px;
    }

    .social-btn .tooltip {
        display: none; /* Hide tooltips on mobile */
    }
}

/* --- Glitch Effect --- */
@keyframes glitch-anim-1 {
    0% { clip: rect(20px, 9999px, 15px, 0); transform: translate(0) }
    10% { clip: rect(60px, 9999px, 70px, 0); transform: translate(-2px, 2px) }
    20% { clip: rect(20px, 9999px, 50px, 0); transform: translate(2px, -2px) }
    30% { clip: rect(10px, 9999px, 40px, 0); transform: translate(-2px, 2px) }
    40% { clip: rect(50px, 9999px, 20px, 0); transform: translate(2px, -2px) }
    50% { clip: rect(30px, 9999px, 60px, 0); transform: translate(0) }
    51% { clip: rect(0, 0, 0, 0); transform: translate(0) }
    100% { clip: rect(0, 0, 0, 0); transform: translate(0) }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(25px, 9999px, 10px, 0); transform: translate(0) }
    10% { clip: rect(65px, 9999px, 75px, 0); transform: translate(2px, -2px) }
    20% { clip: rect(15px, 9999px, 55px, 0); transform: translate(-2px, 2px) }
    30% { clip: rect(5px, 9999px, 35px, 0); transform: translate(2px, -2px) }
    40% { clip: rect(55px, 9999px, 25px, 0); transform: translate(-2px, 2px) }
    50% { clip: rect(35px, 9999px, 65px, 0); transform: translate(0) }
    51% { clip: rect(0, 0, 0, 0); transform: translate(0) }
    100% { clip: rect(0, 0, 0, 0); transform: translate(0) }
}

.glitch-hover {
    position: relative;
    display: inline-block;
}

/* Create duplicates for glitch effect */
.glitch-hover::before,
.glitch-hover::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color); /* Matches background to hide main text */
    overflow: hidden;
    clip: rect(0, 0, 0, 0); 
    opacity: 1;
}

/* Permanent glitch activation with delays */
.glitch-hover::before {
    left: -2px;
    text-shadow: 2px 0 #00ffff; /* Cyan shift */
    animation: glitch-anim-1 5s infinite linear alternate-reverse;
    animation-delay: var(--glitch-delay-1, 0s);
}

.glitch-hover::after {
    left: 2px;
    text-shadow: -2px 0 #ff00ff; /* Magenta shift */
    animation: glitch-anim-2 4s infinite linear alternate-reverse;
    animation-delay: var(--glitch-delay-2, 0s);
}

/* Remove default underline for project titles since we use glitch now */
.project-card:hover .project-title {
    text-decoration: none;
}
