:root {
    --header-height: 130px;

    --crc-color-1: #4CAF50;
    --crc-color-2: #FF9800;
    --crc-color-3: #2196F3;
    --crc-color-4: #BA68C8;
    --crc-color-5: #795548;
    --crc-color-6: #F44336;
    
}



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

body {
    font-family: 'Press Start 2P', 'Courier New', monospace;
    line-height: 1.6;
    color: #e8e6e3;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
#head {
    position: sticky;
    top: 0;
    z-index: 10;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    text-align: center;
}

.nav {
    background: rgba(26, 26, 46, 1);
    border-bottom: 3px solid #ffb84d;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav a {
    color: white;
    text-decoration: none;
    margin: 0.5rem 1rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.nav a#active {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid #ffb84d;
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section:nth-child(even) {
    background-color: rgba(26, 26, 46, 0.8);
}

.section:nth-child(odd) {
    background-color: rgba(22, 33, 62, 0.8);
}

/* Grids */
.crc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.feature-card,
.crc-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    color: #e8e6e3;
}
.feature-card:hover,
.crc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}


.crc-card p {
    margin-bottom: 0.8rem;
    line-height: 1.5;

}

.crc-card strong {
    color: #ffb84d;
}


.crc-card h3 {
    width: 100%;
}
.crc-card ul{
    padding-left: 20px;
    margin: 10px 0;
    list-style: none;
}

.crc-card li {
    position: relative;
    margin-bottom: 8px;
    line-height: 1.4;
    padding-left: 12px;
}

.crc-card li::before {
    content: '•';
    color: #667eea;
    position: absolute;
    left: 0;
}

/* Cycle through the colors */
.crc-card:nth-child(6n+1) { border-top-color: var(--crc-color-1); box-shadow: 0 8px 32px rgba(76, 175, 80, 0.1); }
.crc-card:nth-child(6n+2) { border-top-color: var(--crc-color-2); box-shadow: 0 8px 32px rgba(255, 152, 0, 0.1); }
.crc-card:nth-child(6n+3) { border-top-color: var(--crc-color-3); box-shadow: 0 8px 32px rgba(33, 150, 243, 0.1); }
.crc-card:nth-child(6n+4) { border-top-color: var(--crc-color-4); box-shadow: 0 8px 32px rgba(186, 104, 200, 0.1); }
.crc-card:nth-child(6n+5) { border-top-color: var(--crc-color-5); box-shadow: 0 8px 32px rgba(121, 85, 72, 0.1); }
.crc-card:nth-child(6n+6) { border-top-color: var(--crc-color-6); box-shadow: 0 8px 32px rgba(244, 67, 54, 0.1); }

/* Documentation Links */
.doc-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.doc-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    white-space: nowrap;
    margin-left: 1rem;
    border: 1px solid transparent;
}

.doc-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* Documents List */
.documents-list {
    max-width: 800px;
    margin: 2rem auto 0;
}

.doc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.doc-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 184, 77, 0.2);
    border-color: #ffb84d;
}

.doc-title {
    font-weight: 600;
    color: #ffb84d;
    flex: 1;
}

/* Headings */
h2 {
    color: #ffb84d;
    text-align: left;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

h3 {
    color: #ffb84d;
    margin: 1rem 0 0.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 184, 77, 0.3);
    font-size: 1.3rem;
    display: inline-block;
}

#overview ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

#overview li {
    margin-bottom: 0.5rem;
    color: #e8e6e3;
}

#overview b {
    color: #ffb84d;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #0c0c0c 100%);
    color: #8faed9;
    text-align: center;
    padding: 2rem 0;
    border-top: 2px solid #ffb84d;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: rgba(26, 26, 46, 0.95);
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 184, 77, 0.3);
    border-radius: 8px;
    top: 100%;
    left: 0;
    z-index: 1000;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #e8e6e3;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: rgba(255, 184, 77, 0.2);
    color: #ffb84d;
    padding-left: 20px;
}

.dropbtn {
    cursor: pointer;
}
.dropbtn::after {
    content: " ▼";
    font-size: 0.7em;
    opacity: 0.7;
}

/* Diagram Section / Zoom */
.diagram-section {
    margin-bottom: 3rem;
    text-align: center;
}

.diagram-container {
    position: relative;
    display: inline-block;
    width: 90%;
    margin: 1rem auto;
    padding: 1rem;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    overflow: visible;
}

.diagram-container:hover {
    border-color: #ffb84d;
    box-shadow: 0 8px 25px rgba(255, 184, 77, 0.2);
}

.diagram-container label {
    display: block;
    cursor: zoom-in;
}

.diagram-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform-origin: center center;
    z-index: 1;
}

.diagram-container:hover img {
    transform: scale(1.02);
}

.diagram-container input {
    display: none;
}

.diagram-container input:checked + img {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh; 
    object-fit: contain;
    transform: scale(1);
    z-index: 1001;
    cursor: zoom-out;
    background: rgba(0, 0, 0, 0.95); 
    display: block;
}
body:has(.diagram-container input:checked) {
    background: rgba(0, 0, 0, 0.95);
}
body:has(.zoom-toggle:checked) {
    overflow: hidden;
}

/* Animations */
@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0.5;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Links */
a {
    color: #ffb84d;
}

/* Media Queries */
@media (max-width: 768px) {
    .doc-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .doc-link {
        margin-left: 0;
        margin-top: 0.5rem;
        align-self: flex-end;
    }

    .nav a {
        margin: 0.5rem;
        font-size: 0.8rem;
    }

    .diagram-container {
        padding: 0.8rem;
        height: 300px;
        max-width: 100%;
    }

    .diagram-section {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .diagram-container {
        height: 250px;
    }

    .diagram-section h3 {
        font-size: 1.1rem;
    }
}
/* ===== Table Styling for Requirements Page ===== */
.table-container {
    overflow-x: auto;
    margin-top: 1.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
}

table th, table td {
    padding: 1rem 1.2rem;
    text-align: left;
    color: #e8e6e3;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: top;
}

table th {
    background: #667eea;
    color: #ffb84d;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

table tr:nth-child(even) {
    background: rgba(26, 26, 46, 0.6);
}

table tr:nth-child(odd) {
    background: rgba(22, 33, 62, 0.6);
}

table td:first-child,table th:first-child {
    color: #ffb84d;
    font-weight: bold;
    width: 15%;
}

@media (max-width: 768px) {
    table th,
    table td {
        font-size: 0.75rem;
        padding: 0.7rem;
    }
}
