:root {
    --bg-color: #0d0e15;
    --text-main: #00ff41;
    --text-primary-bright: #39ff14;
    --text-secondary: #008f11;
    --accent: #ff003c;
    --bg-panel: rgba(26, 28, 35, 0.25);
    --border-color: rgba(0, 255, 65, 0.3);
    --font-mono: 'Fira Code', 'Consolas', 'Courier New', monospace;
    --scanline-color: rgba(0, 255, 65, 0.03);
}

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

body {
    background-color: transparent;
    color: var(--text-main);
    font-family: var(--font-mono);
    line-height: 1.6;
    overflow-x: hidden;
}

#universe {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-color: #050508;
}

/* CRT Scanlines Effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to bottom, var(--scanline-color) 50%, transparent 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 9999;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    background-color: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--text-main);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-left,
.header-center,
.header-right {
    flex: 1;
}

.header-center {
    display: flex;
    justify-content: center;
}

.header-right {
    text-align: right;
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
}

.logo {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--text-main);
    text-shadow: 0 0 8px var(--text-main);
}

.logo-text {
    color: #fff;
    text-shadow: 0 0 8px #fff;
}

.blink {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

.ablogo {
    height: 123px;
    width: auto;
	transition: transform 0.3s ease;
}

.ablogo:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}
.br-flag {
    width: 90px;
    height: auto;
    filter: drop-shadow(0 0 10px #009c3b) brightness(1.0);
    transition: transform 0.3s ease;
}

.br-flag:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px #009c3b) brightness(1.2);
}

#clock_container,
#quotes_container {
    background: #000;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.5rem 1rem;
    box-shadow: inset 0 0 10px rgba(0, 255, 65, 0.1);
}

#clock_container {
    display: inline-block;
}

#quotes_container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

#clock {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary-bright);
    text-shadow: 0 0 5px var(--text-primary-bright);
    letter-spacing: 2px;
}

.content {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.hero {
    margin-bottom: 4rem;
    border-left: 4px solid var(--text-main);
    padding: 1.5rem;
    background: linear-gradient(90deg, rgba(0, 255, 65, 0.05), transparent);
}

.hero h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #fff;
}

.cmd-prompt {
    color: var(--accent);
    text-shadow: 0 0 5px var(--accent);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.news-card {
    background-color: var(--bg-panel);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid var(--border-color);
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.news-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 0;
    height: 3px;
    background-color: var(--text-primary-bright);
    transition: width 0.3s ease;
}

.news-card:hover::before {
    width: calc(100% + 2px);
    box-shadow: 0 0 10px var(--text-primary-bright);
}

.news-card:hover {
    box-shadow: 0 5px 20px rgba(0, 255, 65, 0.15);
    transform: translateY(-5px);
    border-color: var(--text-main);
}

.card-header {
    margin-bottom: 1.5rem;
}

.badge {
    color: #000;
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    font-weight: bold;
    border-radius: 2px;
    display: inline-block;
    text-shadow: none;
}

.badge-linux {
    background-color: #ffcc00;
}

.badge-c {
    background-color: #00599C;
    color: #fff;
}

.badge-python {
    background-color: #3776AB;
    color: #fff;
}

.badge-html {
    background-color: #E34F26;
    color: #fff;
}

.badge-retro {
    background-color: #C0C0C0;
}

.badge-delphi {
    background-color: #EE1F35;
    color: #fff;
}

.badge-windows {
    background-color: #0078D6;
    color: #fff;
}

.news-card h2 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: #fff;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
}

.news-card p {
    color: #a0a0a0;
    margin-bottom: 1.5rem;
}

.card-footer {
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: bold;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.news-card:hover .card-footer {
    opacity: 1;
}

.footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-panel);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--border-color);
    margin-top: 0;
    font-size: 1.15rem;
    color: var(--text-secondary);
}

/* Responsiveness */
@media (max-width: 800px) {
    .header {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
        position: relative;
    }

    .header-right {
        justify-content: center;
    }

    .br-flag {
        width: 70px;
    }

    .hero h1 {
        font-size: 1.4rem;
    }
}

/* News List Styles */
.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 5px;
}

.news-list::-webkit-scrollbar {
    width: 6px;
}

.news-list::-webkit-scrollbar-thumb {
    background: var(--text-secondary);
    border-radius: 3px;
}

.news-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.news-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--border-color);
}

.news-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.news-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.05rem;
    transition: color 0.2s, text-shadow 0.2s;
    display: inline-block;
    margin-bottom: 4px;
    line-height: 1.4;
}

.news-link:hover {
    color: var(--text-primary-bright);
    text-shadow: 0 0 5px var(--text-primary-bright);
}

.news-source {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: bold;
}

.news-fallback {
    color: #a0a0a0;
    font-size: 0.95rem;
    font-style: italic;
}

/* Partners Banner Styles */
.partners-strip {
    width: calc(100% - 3rem);
    max-width: 1152px;
    margin: 5rem auto 0 auto;
    background-color: #fff;
    padding: 0.5rem 5%;
    border-radius: 4px 4px 0 0;
}

.partners-banner {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.partners-banner::-webkit-scrollbar {
    display: none;
}
.partners-banner {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.partners-banner img {
    max-height: 35px;
    width: auto;
    filter: none;
    transition: transform 0.3s ease;
}

.partners-banner a {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.partners-banner img:hover,
.partners-banner a:hover img {
    transform: scale(1.05);
}

@media (max-width: 800px) {
    .partners-banner {
        gap: 2rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    .partners-banner > img,
    .partners-banner > a {
        flex: 0 0 calc(50% - 1rem);
        display: flex;
        justify-content: center;
    }
    .partners-banner img {
        max-height: 25px;
    }
}