/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
 
/* Body */
body {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    color: #fff;
    background: #0a0a0a;
    overflow-x: hidden;
}
 
/* Moving star overlay */
body::before {
    content: "";
    position: fixed;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(white 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.05;
    animation: moveStars 60s linear infinite;
    pointer-events: none;
}
 
@keyframes moveStars {
    from { transform: translate(0, 0); }
    to { transform: translate(100px, 100px); }
}
 
/* Layout */
#wrapper {
    display: flex;
    min-height: 100vh;
}
 
/* Sidebar */
#leftcolumn {
    width: 220px;
    padding: 20px;
    border-right: 2px solid #ce2b37;
    background-image: url("starx.gif");
    background-color: #050505;
}
 
#leftcolumn h3 {
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}
 
/* Neon Links */
#leftcolumn a {
    display: block;
    margin: 12px 0;
    color: #00aa44;
    text-decoration: none;
    position: relative;
    transition: 0.3s;
}
 
#leftcolumn a:hover {
    color: #fff;
    text-shadow:
        0 0 5px #00cc55,
        0 0 10px #00cc55,
        0 0 20px #00cc55;
    transform: translateX(8px);
}
 
#leftcolumn a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: #00cc55;
    transition: 0.3s;
}
 
#leftcolumn a:hover::after {
    width: 100%;
}
 
/* Content */
#content {
    flex: 1;
    padding: 25px;
    background-image: url("starx.gif");
    background-color: #0a0a0a;
}
 
/* Tricolor Header — flickers through green, white, red */
h1 {
    color: #ffffff;
    animation: triflicker 3s infinite alternate;
}
 
@keyframes triflicker {
    0%   { color: #00aa44; text-shadow: 0 0 10px #00aa44, 0 0 20px #00aa44; }
    40%  { color: #ffffff; text-shadow: 0 0 10px #ffffff, 0 0 20px rgba(255,255,255,0.5); }
    70%  { color: #ffffff; text-shadow: 0 0 5px #ffffff; }
    100% { color: #ce2b37; text-shadow: 0 0 10px #ce2b37, 0 0 25px #ce2b37; }
}
 
/* Projects Grid — 3 per row */
.projects-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}
 
/* Project Card — tricolor border cycling */
.project-card {
    display: flex;
    flex-direction: column;
    background-image: url("starx.gif");
    border: 2px solid #ffffff;
    border-radius: 10px;
    padding: 15px;
    position: relative;
    transition: 0.3s;
    color: #fff;
}
 
.project-card h3 {
    color: #00cc55;
    margin-bottom: 8px;
}
 
.project-card p {
    color: #dddddd;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}
 
/* Glow on hover */
.project-card:hover {
    transform: scale(1.05);
    border-color: #ce2b37;
    box-shadow:
        0 0 10px #ce2b37,
        0 0 20px rgba(206, 43, 55, 0.5),
        0 0 5px #00aa44;
}
 
/* Animated tricolor border glow */
.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: linear-gradient(90deg, #00aa44, #ffffff, #ce2b37, #00aa44);
    background-size: 300%;
    filter: blur(8px);
    opacity: 0;
    z-index: -1;
}
 
.project-card:hover::before {
    opacity: 1;
    animation: borderFlow 3s linear infinite;
}
 
@keyframes borderFlow {
    from { background-position: 0%; }
    to { background-position: 300%; }
}
 
/* Buttons — pinned to the bottom of each card */
.project-card a {
    display: inline-block;
    margin-top: auto;
    align-self: flex-start;
    padding: 6px 10px;
    border: 1px solid #ce2b37;
    border-radius: 5px;
    color: #ce2b37;
    text-decoration: none;
    transition: 0.3s;
}
 
.project-card a:hover {
    background: #ce2b37;
    color: white;
    box-shadow:
        0 0 10px #ce2b37,
        0 0 20px rgba(206, 43, 55, 0.6);
}
 
/* Responsive */
@media (max-width: 1000px) {
    .projects-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
 
@media (max-width: 768px) {
    #wrapper {
        flex-direction: column;
    }
 
    #leftcolumn {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #ce2b37;
        text-align: center;
    }
 
    .projects-container {
        grid-template-columns: 1fr;
    }
}
 
