
:root {
    --bg-dark: #0f0518;       
    --bg-card: #1b0e2d; 
    --bg-light: #240046;
    --bg-ultralight: #3d1068;      
    --primary: #a855f7;     
    --secondary: #d8b4fe;    
    --text-white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --redblood: #830000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-image: linear-gradient(to bottom, var(--bg-light), var(--bg-ultralight));
    color: var(--secondary);
    line-height: 1.6;
    overflow-x: hidden;
    font-family: 'Courier New', Courier, monospace;
}

::-webkit-scrollbar {
    width: 8px;
}

#cursor-glow {
    width: 30vw;
    height: 30vw;
    background: radial-gradient(
        circle, 
        rgba(133, 65, 192, 0.25) 0%, 
        rgba(168, 106, 219, 0.1) 30%, 
        rgba(26, 25, 25, 0) 70%
    );
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    filter: blur(20px); 
    z-index: -100;
    pointer-events: none; 
    opacity: 0;
    transition: opacity 0.5s ease;
    transform: translate(-50%, -50%);
    will-change: transform;
}

#musicplaying {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
    background-image: linear-gradient(to left, black, var(--bg-dark));
    opacity: 0.8;
    width: 21.5vw;
    border-style: solid;
    border-width: 2px;
    border-radius: 2px;
    
}

.bigcontainer {
    margin: auto;
    margin-top: 15vh;
    display: grid;
    height: 100%;
    width: 85%;
    border-width: 5px;
    border-style: solid;
    border-color: var(--bg-dark);
    border-radius: 15px;
    box-shadow: 0 0 20px 20px rgba(168, 85, 247, 0.2);
    grid-template-columns: 17% 1fr 1fr 17%;
    grid-template-rows: 30vh 1fr 30vh;

    grid-template-areas: 
        "head   head   head   head"
        "left   main   main   right"
        "footL  footL  footR  footR";
        
    gap: 4px; 
}

.header {
    grid-area: head;
    background-color: var(--bg-card);
}

#glenplayer02 {
    position:relative;
    top:0px;
    left:5px;
    display:flex;
    z-index:99;
}
#glenplayer02 a {text-decoration:none;}
 
#glenplayer02 > div {
    align-self:center;
    -webkit-align-self:center;
}
 
.music-controls {
    user-select:none;
    -webkit-user-select:none;
    width:13px;
    font-size:18px;
    cursor:pointer;
}
 
.playy, .pausee {color:#F6D5F0; text-shadow: -1px 0 #000, 0 1px #000, 1px 0 #000, 0 -1px #000, 0 0;}
 
.pausee {display:none;}
 
.sonata {
    margin-left:10px;
    font-size:14px;
    color:#F6D5F0;
    font-weight: bold;
    text-shadow: -1px 0 #000, 0 1px #000, 1px 0 #000, 0 -1px #000, 0 0;
}
 
.labeltext {
    margin-left:0px;
    position: relative;
    bottom: 10px;
    font-size: 14px;
    color:#F6D5F0;
    font-weight: bold;
    text-shadow: -1px 0 #000, 0 1px #000, 1px 0 #000, 0 -1px #000, 0 0;
}

.sidebar-left {
    grid-area: left;
    background-color: var(--bg-card);
    min-height: 70vh;
}

.main-content {
    grid-area: main;
    background-color: var(--bg-card);
    color: #ffffff; 
    display: grid;
}

.grid-box {
    width: 95%;
    max-width: 1200px;
    height: 100%;
    background-color: #241242;
    border: 2px solid #4a2b7a;
    border-radius: 15px;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(81, 40, 136, 0.3);
}

.content-row {
    flex-grow: 1; 
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    padding: 20px;
}

.column {
    background-color: #2e1a53;
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    max-height: 70vh;
    overflow-y: hidden;
}

.column:hover {
    background-color: #3d226e;
    border-color: #7d54c7;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

.col-1 {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.image-container {
    width: 100%;
    aspect-ratio: 4 / 3; 
    overflow: hidden;
    border-radius: 8px;
    background-color: #000;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.col-1:hover img {
    transform: scale(1.1);
}

.text-content p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #bfaee3;
}


.sidebar-right {
    grid-area: right;
    background-color: var(--bg-card);
}

.footer-left {
    grid-area: footL;
    background-color: var(--bg-card);
}

.footer-right {
    grid-area: footR;
    background-color: var(--bg-card);
}

.header, .sidebar-left, .main-content, .sidebar-right, .footer-left, .footer-right {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-style: solid;
    border-width: 1px;
    border-color: var(--bg-dark)
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-white);
}

.retro-window {
    width: 100%;
    background-color: #240046;
    border-top: 2px solid #7b2cbf;
    border-left: 2px solid #7b2cbf;
    border-right: 2px solid #10002b;
    border-bottom: 2px solid #10002b;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.5);
    height: 70vh;
    display: flex;
    flex-direction: column;
    flex-shrink: 0; 
}



.window-header {
    background: linear-gradient(90deg, #3c096c, #5a189a);
    padding: 4px 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #10002b;
    cursor: pointer;
    user-select: none;
    height: 3vh;
}

.window-title {
    font-weight: bold;
    color: #fff;
    font-size: 1.5vh;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-minimize {
    width: 2vh;
    height: 2vh;
    background-color: #9d4edd;
    border-top: 1px solid #e0aaff;
    border-left: 1px solid #e0aaff;
    border-right: 1px solid #240046;
    border-bottom: 1px solid #240046;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1vh;
    line-height: 1;
    font-weight: bold;
    margin-left: 5px;
}

.btn-minimize:active {
    border-color: #240046 #e0aaff #e0aaff #240046;
}

.btn-minimize:hover {
  background-color: #7b3dff;
  cursor: pointer;
}


.window-content {
    width: 100%;
    height: 70vh; 
    overflow-y: auto;
    overflow-x: hidden; 
    padding: 8px; 
    background-color: #190028;
    
    display: flex;
    flex-direction: column;
    gap: 10px;
    
    transition: height 0.3s ease-in-out;
}

.window-content.minimized {
    height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.list-item {
    background-color: #3c096c;
    padding: 8px;
    border: 1px solid #7b2cbf;
    color: #e0aaff;
    box-shadow: 2px 2px 0px #10002b;
    font-size: 1.3vh; 
    word-wrap: break-word; 
    line-height: 1.2;
}

.list-item:hover {
    background-color: #5a189a;
    color: #fff;
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px #10002b;
}

.window-content::-webkit-scrollbar {
    width: 6px; 
}

.window-content::-webkit-scrollbar-track {
    background: #240046;
}

.window-content::-webkit-scrollbar-thumb {
    background-color: #7b2cbf;
    border-radius: 2px;
}

.window-content::-webkit-scrollbar-thumb:hover {
    background-color: #9d4edd;
}

.highlight { color: var(--primary); }
.highlightred { color: var(--redblood); }

.text-gradient {
    background: linear-gradient(to right, var(--primary), #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    margin-top: 1.5rem;
    background: var(--primary);
    color: var(--text-white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
}

.tags span {
    display: inline-block;
    font-size: 0.8rem;
    background: rgba(168, 85, 247, 0.1);
    color: var(--primary);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    margin-right: 0.5rem;
    margin-top: 1rem;
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer {
    text-align: center;
    padding: 2rem;
    border-top: 2px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
    margin-top: 2rem;
    box-shadow: 0 0 5px 0;
    background-color: var(--bg-dark);
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .navbar { flex-direction: column; gap: 1rem; }
}