/*
file - styles.css :
*/
body {
    background-color: white; /* Ensure the iframe has a white background */
}
:root {
    --dark-bg-primary: #0A0A0A;
    --dark-bg-secondary: #1A1A1A;
    --dark-bg-tertiary: #2A2A2A;
    --text-light: #E0E0E0;
    --text-gray: #B0B0B0;
    --transition-duration: 2s; /* Smooth transition duration */
}
/* Color transition variables */
:root {
    --matrix-primary: #00FF41;
    --matrix-secondary: #00FF41;
    --matrix-border: #004D19;
}
/* Force smooth transitions for all color-dependent properties */
body, body * {
    transition: color var(--transition-duration) ease-in-out,
    background-color var(--transition-duration) ease-in-out,
    border-color var(--transition-duration) ease-in-out,
    box-shadow var(--transition-duration) ease-in-out,
    text-shadow var(--transition-duration) ease-in-out,
    filter var(--transition-duration) ease-in-out;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: 'Share Tech Mono', monospace;
    color: var(--text-light);
    background-color: var(--dark-bg-primary);
    overflow-x: hidden;
    /* Custom cursor will now be set by JavaScript */
}
.matrix-rain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}
.matrix-rain-container canvas {
    display: block;
}
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.88); /* 12% opacity */
    box-shadow: 0 2px 10px rgba(0, 255, 65, 0.2);
    padding: 12px 0;
    z-index: 1000;
    border-bottom: 1px solid var(--matrix-border);
    min-height: 50px;
    display: flex;
    align-items: center;
    transition: padding 0.3s ease;
}
.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}
.navbar-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8em;
    color: var(--matrix-primary);
    text-decoration: none;
    letter-spacing: 2px;
    text-shadow: 0 0 5px currentColor;
    transition: all 0.3s ease;
    cursor: pointer;
}
.navbar-logo:hover {
    transform: scale(1.1);
    text-shadow: 0 0 10px currentColor;
}
.navbar-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}
.navbar-links li {
    margin-left: 30px;
}
.navbar-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1em;
    position: relative;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.navbar-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    background: var(--matrix-primary);
    transition: width 0.3s ease;
    left: 50%;
    transform: translateX(-50%);
}
.navbar-links a:hover {
    color: var(--matrix-primary);
    text-shadow: 0 0 5px var(--matrix-primary);
}
.navbar-links a:hover::after {
    width: 100%;
}
main {
    margin-top: var(--nav-height, 80px);
    padding-bottom: 50px;
}
section::before {
    content: "";
    display: block;
    height: var(--nav-height-offset, 80px);
    margin-top: calc(0px - var(--nav-height-offset, 80px));
    visibility: hidden;
    pointer-events: none;
}
.section {
    background-color: rgba(26, 26, 26, 0.78);
    border: 1px solid var(--matrix-border);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 0 15px var(--matrix-primary, 0.1);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.8s forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.section:nth-child(1) { animation-delay: 0.2s; }
.section:nth-child(2) { animation-delay: 0.4s; }
.section:nth-child(3) { animation-delay: 0.6s; }
.section:nth-child(4) { animation-delay: 0.8s; }
.section:nth-child(5) { animation-delay: 1.0s; }
.section:nth-child(6) { animation-delay: 1.2s; }
.section:hover {
    box-shadow: 0 0 25px var(--matrix-primary, 0.3), 0 0 40px var(--matrix-primary, 0.1);
    transform: scale(1.005);
}
.binary-scan {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0) 45%,
        var(--matrix-primary, rgba(0, 255, 65, 0.1)) 50%,
        rgba(0, 0, 0, 0) 55%,
        rgba(0, 0, 0, 0) 100%
    );
    opacity: 0.7;
    pointer-events: none;
    animation: binary-scan-animation 20s linear infinite;
}
@keyframes binary-scan-animation {
    0% { transform: translateY(0); }
    100% { transform: translateY(calc(100vh + 100px)); }
}
.glitch-text {
    position: relative;
    display: inline-block;
    color: var(--matrix-primary);
    text-shadow: 0 0 8px var(--matrix-primary, rgba(0, 255, 65, 0.6));
    z-index: 10;
}
.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}
.glitch-text::before {
    left: var(--glitch-offset);
    text-shadow: -1px 0 var(--matrix-secondary);
    animation: glitch-anim-primary var(--glitch-duration-1) infinite alternate-reverse var(--glitch-delay-1);
}
.glitch-text::after {
    left: calc(var(--glitch-offset) * -1);
    text-shadow: 1px 0 #FF00FF;
    animation: glitch-anim-secondary var(--glitch-duration-2) infinite alternate-reverse var(--glitch-delay-2);
}
@keyframes glitch-anim-primary {
    0% { clip-path: inset(0 0 100% 0); }
    5% { clip-path: inset(10% 0 85% 0); }
    10% { clip-path: inset(20% 0 70% 0); }
    15% { clip-path: inset(30% 0 60% 0); }
    20% { clip-path: inset(40% 0 45% 0); }
    25% { clip-path: inset(50% 0 35% 0); }
    30% { clip-path: inset(60% 0 20% 0); }
    35% { clip-path: inset(70% 0 10% 0); }
    40% { clip-path: inset(80% 0 5% 0); }
    45% { clip-path: inset(90% 0 0% 0); }
    50% { clip-path: inset(0 0 100% 0); }
    55% { clip-path: inset(5% 0 90% 0); }
    60% { clip-path: inset(15% 0 75% 0); }
    65% { clip-path: inset(25% 0 65% 0); }
    70% { clip-path: inset(35% 0 50% 0); }
    75% { clip-path: inset(45% 0 40% 0); }
    80% { clip-path: inset(55% 0 25% 0); }
    85% { clip-path: inset(65% 0 15% 0); }
    90% { clip-path: inset(75% 0 10% 0); }
    95% { clip-path: inset(85% 0 5% 0); }
    100% { clip-path: inset(0 0 100% 0); }
}
@keyframes glitch-anim-secondary {
    0% { clip-path: inset(100% 0 0% 0); }
    7% { clip-path: inset(80% 0 15% 0); }
    14% { clip-path: inset(60% 0 20% 0); }
    21% { clip-path: inset(40% 0 35% 0); }
    28% { clip-path: inset(20% 0 50% 0); }
    35% { clip-path: inset(0% 0 70% 0); }
    42% { clip-path: inset(10% 0 80% 0); }
    49% { clip-path: inset(30% 0 60% 0); }
    50% { clip-path: inset(100% 0 0% 0); }
    57% { clip-path: inset(95% 0 0% 0); }
    64% { clip-path: inset(70% 0 10% 0); }
    71% { clip-path: inset(50% 0 30% 0); }
    78% { clip-path: inset(30% 0 50% 0); }
    85% { clip-path: inset(10% 0 70% 0); }
    92% { clip-path: inset(0% 0 85% 0); }
    100% { clip-path: inset(100% 0 0% 0); }
}
.section::before, .section::after {
    content: '';
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--matrix-primary), transparent);
    opacity: 0.1;
    animation: glitch-line 5s infinite linear;
    z-index: 0;
    left: 0;
}
.section::before { top: 0; width: 100%; height: 2px; }
.section::after { bottom: 0; width: 100%; height: 2px; animation-delay: 2.5s; }
@keyframes glitch-line {
    0% { transform: translateX(-100%); opacity: 0.1; }
    50% { transform: translateX(0%); opacity: 0.2; }
    100% { transform: translateX(100%); opacity: 0.1; }
}
h1, h2, h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--matrix-primary);
    border-bottom: 1px dashed var(--matrix-border);
    padding-bottom: 10px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}
p {
    line-height: 1.7;
    margin-bottom: 15px;
    color: var(--text-gray);
}
a { color: var(--matrix-primary); text-decoration: none; transition: color 0.3s ease;}
a:hover { color: var(--matrix-secondary); text-decoration: underline; }
.profile-header { display: flex; align-items: center; gap: 30px; margin-bottom: 30px; }
.profile-pic {
    width: 150px; height: 150px;
    border-radius: 50%;
    border: 3px solid var(--matrix-primary);
    object-fit: cover;
    box-shadow: 0 0 15px var(--matrix-primary, rgba(0, 255, 65, 0.5));
    animation: pulse-border 2s infinite alternate;
    transition: transform 0.3s ease;
    cursor: pointer;
}
.profile-pic:hover {
    transform: scale(1.05);
}
@keyframes pulse-border {
    from { border-color: var(--matrix-primary); box-shadow: 0 0 15px var(--matrix-primary, rgba(0, 255, 65, 0.5));}
    to { border-color: var(--matrix-secondary); box-shadow: 0 0 25px var(--matrix-secondary, rgba(0, 255, 65, 0.8));}
}
.profile-info h1 { margin: 0; font-size: 2.5em; }
.profile-info p { font-size: 1.1em; color: var(--text-light); margin-top: 10px;}
.mood-status { font-style: italic; color: var(--matrix-primary); margin-top: 10px; display: block; }
.friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.friend-card {
    background-color: rgba(42, 42, 42, 0.52);
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--matrix-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.friend-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--matrix-primary, rgba(0, 255, 65, 0.1)) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.5s ease;
    opacity: 0;
}
.friend-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--matrix-primary);
}
.friend-card:hover::before {
    transform: scale(1);
    opacity: 1;
}
.friend-card img {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--matrix-primary);
    margin-bottom: 10px;
    transition: box-shadow 0.3s ease;
}
.friend-card:hover img {
    box-shadow: 0 0 15px var(--matrix-primary);
}
.friend-card a {
    display: block; font-size: 0.9em; font-weight: bold;
    color: var(--text-light); text-decoration: none; word-break: break-word;
    transition: color 0.3s ease;
}
.friend-card a:hover { color: var(--matrix-primary); }
.blog-post {
    background-color: rgba(42, 42, 42, 0.52);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid var(--matrix-border);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
}
.blog-post::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--matrix-primary, rgba(0, 255, 65, 0.1)), transparent);
    transition: left 0.5s ease;
}
.blog-post:hover::after {
    left: 100%;
}
.blog-post:hover {
    box-shadow: 0 0 15px var(--matrix-primary, rgba(0, 255, 65, 0.6));
    transform: translateY(-3px);
}
.blog-post h3 { margin-top: 0; margin-bottom: 10px; }
.blog-post .date { font-size: 0.85em; color: var(--text-gray); margin-bottom: 10px; display: block;}
.music-player-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.88); /* 12% opacity */
    padding: 15px 0;
    box-shadow: 0 -2px 10px var(--matrix-primary, rgba(0, 255, 65, 0.2));
    z-index: 999;
    border-top: 1px solid var(--matrix-border);
    transition: padding 0.3s ease;
}
.music-player-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}
.track-info {
    flex-grow: 1;
    margin-right: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 150px;
    font-family: 'Share Tech Mono', monospace;
}
.track-info span { font-size: 1.1em; color: var(--matrix-primary); }
.track-info p { margin: 0; font-size: 0.9em; color: var(--text-gray);}
/* Custom Audio Controls */
.custom-audio-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap; /* Prevent wrapping unless explicitly broken */
    min-width: 0; /* Allow content to shrink beyond default if needed */
}
/* Player Buttons (Prev, Play/Pause, Next) */
.player-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0; /* Prevent shrinking below content size */
}
.player-buttons button {
    background-color: var(--matrix-primary);
    color: var(--dark-bg-primary);
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Share Tech Mono', monospace;
    flex-shrink: 0; /* Prevent buttons from shrinking */
}
.player-buttons button:hover {
    background-color: var(--matrix-secondary);
    color: var(--text-light);
    box-shadow: 0 0 10px var(--matrix-secondary);
}
.player-buttons button:disabled {
    background-color: var(--matrix-border);
    cursor: not-allowed;
    opacity: 0.6;
}
/* Progress Control */
.progress-control {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1; /* Allows progress bar area to fill available space */
    min-width: 0; /* Important for flex items with `flex-grow` */
}
.progress-bar {
    -webkit-appearance: none;
    width: clamp(100px, 100%, 200px); /* Max width 200px, but responsive down to 100px */
    height: 5px;
    background: var(--matrix-border);
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
    border-radius: 3px;
    cursor: pointer;
    flex-grow: 1;
    min-width: 80px; /* Minimum width for the slider itself */
}
.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--matrix-primary);
    cursor: pointer;
    box-shadow: 0 0 5px var(--matrix-primary);
}
.progress-bar::-moz-range-thumb {
    width: 15px; height: 15px;
    border-radius: 50%;
    background: var(--matrix-primary);
    cursor: pointer;
    box-shadow: 0 0 5px var(--matrix-primary);
}
.time-display {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9em;
    color: var(--text-gray);
    flex-shrink: 0; /* Prevent time from shrinking */
    white-space: nowrap; /* Keep time display on one line */
}
/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0; /* Prevent volume controls from shrinking */
}
.volume-control i {
    color: var(--matrix-primary);
    font-size: 1.2em;
    cursor: pointer;
}
.volume-control input[type="range"] {
    -webkit-appearance: none;
    width: 80px;
    height: 5px;
    background: var(--matrix-border);
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
    border-radius: 3px;
}
.volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--matrix-primary);
    cursor: pointer;
    box-shadow: 0 0 5px var(--matrix-primary);
}
.volume-control input[type="range"]::-moz-range-thumb {
    width: 15px; height: 15px;
    border-radius: 50%;
    background: var(--matrix-primary);
    cursor: pointer;
    box-shadow: 0 0 5px var(--matrix-primary);
}
.playlist-container { margin-top: 15px; }
.playlist-title {
    font-family: 'Orbitron', sans-serif;
    color: var(--matrix-primary);
    border-bottom: 1px dashed var(--matrix-border);
    padding-bottom: 10px;
    margin-bottom: 15px;
    letter-spacing: 1px;
    font-size: 1.2em;
}
.playlist-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-radius: 6px;
}
.playlist-list li {
    margin: 0;
    padding: 12px 16px;
    background: rgba(42, 42, 42, 0.5); /* Added transparency here */
    border-bottom: 1px solid var(--matrix-border);
    cursor: pointer;
    color: var(--text-light);
    display: flex; align-items: center;
    transition: background 0.22s, box-shadow 0.18s, color 0.18s;
    font-family: 'Share Tech Mono', monospace;
    position: relative;
    overflow: hidden;
}
.playlist-list li::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -10px;
    width: 0;
    height: 2px;
    background: var(--matrix-primary);
    transform: translateY(-50%);
    transition: width 0.3s ease;
}
.playlist-list li:hover::before {
    width: 100%;
}
.playlist-list li.active,
.playlist-list li:hover {
    background: var(--matrix-primary);
    color: var(--dark-bg-primary);
    box-shadow: 0 0 7px 2px var(--matrix-primary);
}
.playlist-list li:last-child { border-bottom: none; }
.playlist-index {
    font-size: 1.1em;
    margin-right: 14px;
    font-family: 'Orbitron', sans-serif;
    color: var(--matrix-secondary);
}
.resources-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}
.resources-list li {
    background-color: rgba(42, 42, 42, 0.52);
    margin-bottom: 10px;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid var(--matrix-border);
    display: flex;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}
.resources-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--matrix-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 4px 0 0 4px;
}
.resources-list li:hover::before {
    transform: scaleY(1);
}
.resources-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 0 15px var(--matrix-primary);
}
.resources-list li a {
    display: flex;
    align-items: center;
    color: var(--matrix-primary);
    text-decoration: none;
    font-size: 1.1em;
    width: 100%;
    font-family: 'Share Tech Mono', monospace;
    transition: transform 0.2s ease;
}
.resources-list li:hover a {
    transform: translateX(5px);
}
.resources-list li a:hover {
    text-decoration: underline;
}
.resources-list li i {
    margin-right: 15px;
    font-size: 1.4em;
    color: var(--text-light);
    transition: color 0.3s ease, transform 0.3s ease;
}
.resources-list li:hover i {
    color: var(--matrix-secondary);
    transform: scale(1.2);
}
.resources-list .resource-name {
    font-family: 'Orbitron', sans-serif;
    color: var(--matrix-primary);
    text-shadow: 0 0 3px var(--matrix-primary, rgba(0, 255, 65, 0.5));
    margin-right: 10px;
}
.resources-list .resource-url {
    font-size: 0.9em;
    color: var(--text-gray);
    flex-grow: 1;
    text-align: right;
    word-break: break-all;
}
.footer {
    text-align: center;
    font-size: 0.85em;
    color: var(--text-gray);
    padding: 30px 20px;
    margin-top: 30px;
    border-top: 1px dashed var(--matrix-border);
    font-family: 'Share Tech Mono', monospace;
    position: relative;
}
.footer::before {
    content: '[ connection terminated: session ended ]';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 0.7em;
    color: var(--matrix-primary);
    opacity: 0;
    transform: rotate(45deg) translateX(-20px);
    transition: all 0.3s ease;
}
.footer:hover::before {
    opacity: 0.7;
    transform: rotate(45deg) translateX(0);
}
.footer a { color: var(--matrix-primary); }
.cursor-trail-particle {
    position: fixed;
    background-color: var(--matrix-primary); /* This will be dynamically updated by JS if needed, but the particle color is already tied to --matrix-primary */
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transform: scale(0);
    animation: fade-out-scale 0.8s forwards;
    box-shadow: 0 0 8px var(--matrix-primary);
    z-index: 9999;
}
@keyframes fade-out-scale {
    0% { opacity: 1; transform: scale(0); filter: brightness(1); }
    10% { opacity: 1; transform: scale(1); filter: brightness(1.5); }
    100% { opacity: 0; transform: scale(0.5); filter: brightness(0.5); }
}
/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}
.loading-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 2em;
    color: var(--matrix-primary);
    text-shadow: 0 0 10px currentColor;
    margin-bottom: 30px;
    letter-spacing: 3px;
}
.loading-dots {
    display: flex;
    gap: 10px;
}
.loading-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--matrix-primary);
    animation: pulse 1.4s infinite ease-in-out both;
}
.loading-dot:nth-child(1) { animation-delay: -0.32s; }
.loading-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes pulse {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}
/* Simulation Clock */
.sim-clock {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--matrix-border);
    padding: 10px 15px;
    border-radius: 4px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9em;
    color: var(--matrix-primary);
    z-index: 100;
    box-shadow: 0 0 10px var(--matrix-primary, rgba(0, 255, 65, 0.3));
}
/* Easter egg message */
.easter-egg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.95);
    border: 2px solid var(--matrix-primary);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    max-width: 500px;
    box-shadow: 0 0 30px var(--matrix-primary);
}
.easter-egg.show {
    opacity: 1;
    visibility: visible;
}
.easter-egg h3 {
    color: var(--matrix-primary);
    margin-top: 0;
    font-size: 1.5em;
}
.easter-egg .close-btn {
    margin-top: 20px;
    background-color: var(--matrix-primary);
    color: var(--dark-bg-primary);
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
.easter-egg .close-btn:hover {
    background-color: var(--matrix-secondary);
}
/* Particle effects for key elements */
.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    animation: particle-float 1.5s ease-out forwards;
}
@keyframes particle-float {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(0);
    }
}
/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 8px 0;
    }
    .navbar-logo {
        font-size: 1.5em;
    }
    .navbar-links {
        margin-top: 8px;
        gap: 5px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .navbar-links li {margin: 0 8px;}
    .navbar-links a {
        font-size: 0.95em;
        padding: 5px 0;
    }
    .profile-header { flex-direction: column; text-align: center;}
    .profile-pic { margin-bottom: 20px;}
    .music-player-container {
        padding: 8px 0;
    }
    .music-player-content {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    .track-info {
        width: 100%;
        text-align: center;
        margin-right: 0;
        margin-bottom: 10px;
    }
    .track-info span {
        font-size: 1em;
    }
    .track-info p {
        font-size: 0.8em;
    }
    .custom-audio-controls {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    .player-buttons {
        justify-content: center;
        width: 100%;
        gap: 8px;
    }
    .player-buttons button {
        padding: 6px 10px;
        font-size: 0.9em;
    }
    /* Audio tag itself is hidden now, so these don't apply */
    /*
    audio {
        width: 200px;
        max-width: 100%;
    }
    */
    .volume-control {
        justify-content: center;
    }
    .volume-control input[type="range"] {
        width: 60px;
    }
    .sim-clock {
        top: auto;
        bottom: 80px;
        right: 10px;
        font-size: 0.8em;
        padding: 5px 10px;
    }
    main {
        padding-bottom: 40px;
    }
    .resources-list li {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 15px;
    }
    .resources-list li i {
        margin-right: 0;
        margin-bottom: 8px;
        width: auto;
        font-size: 1.2em;
    }
    .resources-list .resource-name {
        width: auto;
        margin-bottom: 5px;
        font-size: 0.95em;
    }
    .resources-list .resource-url {
        text-align: left;
        width: auto;
        display: block;
        font-size: 0.85em;
    }
}
@media (max-width: 480px) {
    .navbar {
        padding: 5px 0;
    }
    .navbar-logo {
        font-size: 1.3em;
        letter-spacing: 1px;
    }
    .navbar-links {
        gap: 3px;
    }
    .navbar-links li {
        margin: 0 5px;
    }
    .navbar-links a {
        font-size: 0.85em;
        padding: 4px 0;
    }
    .music-player-container {
        padding: 5px 0;
    }
    .music-player-content {
        padding-left: 10px;
        padding-right: 10px;
    }
    .track-info {
        margin-bottom: 5px;
    }
    .player-buttons {
        gap: 6px;
    }
    .player-buttons button {
        padding: 5px 8px;
        font-size: 0.8em;
    }
    .volume-control {
        gap: 3px;
    }
    .volume-control i {
        font-size: 1em;
    }
    .volume-control input[type="range"] {
        width: 50px;
    }
    /*
    audio {
        width: 200px;
        max-width: 100%;
    }
    */
    .section {
        padding: 20px;
    }
    .profile-pic {
        width: 120px;
        height: 120px;
    }
    .profile-info h1 {
        font-size: 1.8em;
    }
    h2 {
        font-size: 1.3em;
    }
    h3 {
        font-size: 1.1em;
    }
    .sim-clock {
        font-size: 0.7em;
        padding: 4px 8px;
    }
    .resources-list li i {
        font-size: 1em;
    }
    .resources-list .resource-name, .resources-list .resource-url {
        font-size: 0.8em;
    }
    /* Adjust player controls stacking on small screens */
    .custom-audio-controls {
        flex-direction: column; /* Stack controls vertically */
        gap: 10px;
        align-items: center;
    }
    .progress-control {
        width: 100%; /* Make progress bar full width */
        justify-content: space-between;
    }
    .progress-bar {
        width: 100%; /* Ensure it fills parent */
    }
    .time-display {
        order: -1; /* Move time to the start if desired, or keep as is */
        width: 100%;
        text-align: center;
        margin-bottom: 5px;
    }
}
/* Paragraph Glitch Effect */
.paragraph-glitch {
    position: relative;
    display: inline-block;
    color: var(--text-gray);
    z-index: 10;
}
.paragraph-glitch::before,
.paragraph-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}
.paragraph-glitch::before {
    left: var(--glitch-offset);
    text-shadow: -1px 0 var(--matrix-secondary);
    animation: glitch-anim-primary var(--glitch-duration-1) infinite alternate-reverse var(--glitch-delay-1);
}
.paragraph-glitch::after {
    left: calc(var(--glitch-offset) * -1);
    text-shadow: 1px 0 #FF00FF;
    animation: glitch-anim-secondary var(--glitch-duration-2) infinite alternate-reverse var(--glitch-delay-2);
}