/* --- CSS Reset & Base Variables --- */
:root {
    --bg-gray: #CCCCCC;
    --header-grad-start: #EEEEEE;
    --header-grad-end: #999999;
    --nav-bg: #003366;
    --nav-text: #FFFFFF;
    --link-blue: #0000FF;
    --link-visited: #800080;
    --link-hover: #FF0000;
    --content-bg: #FFFFFF;
    --border-color: #666666;
    --accent-orange: #FF9900;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Verdana', 'Arial', sans-serif; /* Classic 2000s font stack */
    font-size: 13px; /* Small font size common in that era */
    line-height: 1.5;
    background-color: var(--bg-gray);
    margin: 0;
    padding: 10px;
    color: #000000;
}

/* --- Main Container (Centering) --- */
.container {
    max-width: 960px; /* Classic 960 grid or 800x600 optimization */
    margin: 0 auto;
    background-color: var(--content-bg);
    border: 1px solid #000;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.2); /* Hard shadow, no blur */
}

/* --- Header Section --- */
header {
    background: linear-gradient(to bottom, #FFFFFF 0%, #CCCCCC 100%);
    border-bottom: 2px solid #000;
    padding: 20px;
    position: relative;
}

h1 {
    font-family: 'Trebuchet MS', 'Arial Black', sans-serif;
    margin: 0;
    color: #333;
    letter-spacing: -1px;
    text-shadow: 1px 1px 0 #FFF;
}

.subtitle {
    font-size: 11px;
    color: #555;
    margin-top: 5px;
}

/* --- Top Navigation (Tabs style) --- */
.top-nav {
    background-color: #333;
    border-top: 1px solid #FFF;
    border-bottom: 3px solid #000;
    padding: 5px 10px 0 10px;
}

.top-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.top-nav li {
    margin-bottom: -3px; /* Overlap with border */
}

.top-nav button {
    background: linear-gradient(to bottom, #E0E0E0, #B0B0B0);
    border: 1px solid #000;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    padding: 6px 15px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Verdana', sans-serif;
    font-size: 12px;
    color: #000;
    position: relative;
}

.top-nav button:hover {
    background: #FFF;
}

.top-nav button.active {
    background: #FFF;
    padding-top: 8px; /* Pop up effect */
    z-index: 10;
    border-bottom: 3px solid #FFF; /* Blend with content */
}

/* --- Layout: Sidebar + Main Content --- */
.main-wrapper {
    display: flex;
    min-height: 500px;
}

/* Sidebar */
aside {
    width: 220px;
    background-color: #F0F0F0;
    border-right: 1px solid #999;
    padding: 15px;
    flex-shrink: 0;
}

/* Main Content Area */
main {
    flex-grow: 1;
    padding: 20px;
    background-color: #FFF;
}

/* --- Typography & Elements --- */
a {
    color: var(--link-blue);
    text-decoration: underline;
}
a:visited { color: var(--link-visited); }
a:hover { color: var(--link-hover);
    cursor: pointer; }

h2 {
    font-size: 18px;
    border-bottom: 1px solid #CCC;
    margin-top: 0;
    color: #333;
    background-color: #EEEEEE;
    padding: 5px;
    border-left: 5px solid var(--nav-bg);
}

h3 {
    font-size: 14px;
    font-weight: bold;
    color: #444;
    margin-bottom: 5px;
}

p {
    margin-bottom: 15px;
    text-align: justify;
}

/* --- "Components" --- */
.sidebar-box {
    border: 1px solid #999;
    background: #FFF;
    padding: 10px;
    margin-bottom: 15px;
}

.sidebar-header {
    background-color: var(--nav-bg);
    color: #FFF;
    padding: 3px 5px;
    font-weight: bold;
    font-size: 11px;
    margin: -10px -10px 10px -10px; /* Stretch to edges */
}

.news-item {
    font-size: 11px;
    border-bottom: 1px dotted #CCC;
    padding-bottom: 5px;
    margin-bottom: 5px;
}

.date {
    color: #666;
    font-size: 10px;
}

/* --- Contact Form (Retro Table Style) --- */
.form-table {
    width: 100%;
    border-collapse: collapse;
}

.form-table td {
    padding: 5px;
    vertical-align: top;
}

.form-label {
    width: 100px;
    font-weight: bold;
    text-align: right;
    background-color: #EEE;
    border: 1px solid #CCC;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    border: 2px inset #CCC;
    background-color: #FFF;
    font-family: 'Verdana', sans-serif;
    font-size: 12px;
    padding: 3px;
}

.btn-submit {
    background-color: #DDD;
    border: 2px outset #FFF;
    border-right-color: #666;
    border-bottom-color: #666;
    padding: 5px 15px;
    font-weight: bold;
    cursor: pointer;
}

.btn-submit:active {
    border: 2px inset #FFF;
    border-right-color: #666;
    border-bottom-color: #666;
}

.btn-reset {
    background-color: #f6abab;
    padding: 5px 15px;
    font-weight: bold;
    cursor: pointer;    
}

/* --- Project List --- */
.project-item {
    border: 1px solid #999;
    padding: 10px;
    margin-bottom: 15px;
    background: #F9F9F9;
}

.project-header {
    display: flex;
    justify-content: space-between;
    background: #E0E0E0;
    padding: 5px;
    border: 1px solid #FFF;
    border-bottom: 1px solid #999;
    margin: -10px -10px 10px -10px;
}

/* --- Footer --- */
footer {
    background-color: #EEE;
    border-top: 1px solid #999;
    padding: 10px;
    text-align: center;
    font-size: 10px;
    color: #666;
}

/* --- Marquee Simulation --- */
.marquee-container {
    background-color: #FFFFCC;
    border: 1px solid #999;
    padding: 2px;
    overflow: hidden;
    white-space: nowrap;
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.marquee-content {
    display: inline-block;
    animation: scroll-left 15s linear infinite;
}

@keyframes scroll-left {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* --- Utility --- */
.hidden { display: none; }

.warning-text {
    color: red;
    font-weight: bold;
    background: yellow;
    padding: 2px;
}

/* --- Responsive Design --- */
@media (max-width: 600px) {
    .main-wrapper {
        flex-direction: column;
    }
    aside {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #999;
    }
    .top-nav button {
        flex-grow: 1;
        font-size: 11px;
        padding: 10px 5px;
    }
    .form-label {
        width: auto;
        text-align: left;
    }
    .form-table td {
        display: block;
        width: 100%;
    }
}
