﻿/* About Page - New Structure CSS */
@font-face {
    font-family: 'VT323';
    src: url('../fonts/VT323.ttf') format('truetype');
    font-display: swap; /* Prevent invisible text during load */
}

body {
    background-color: #1a1a1a;
    color: #aaffee;
    font-family: 'VT323', monospace;
}

/* Custom Scrollbar Styling - Consistent with Site */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #2a2a2a;
}

::-webkit-scrollbar-thumb {
    background: #557777;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #aaffee;
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #557777 #2a2a2a;
}

.page-content {
    padding: 20px;
    width: 100%;
    margin: 0;
}

.subtitle {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #ccffff;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 5px #00ffff;
}

/* Hierarchy Sections */
.hierarchy-section {
    margin-bottom: 60px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 30px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    width: 100%;
}

.hierarchy-title {
    font-size: 1.8em;
    color: #ffffaa;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid #ffffaa;
    padding-bottom: 10px;
    text-shadow: 0 0 3px #ffff00;
}

/* Executive Command */
.executive-container {
    display: flex;
    justify-content: center;
}

.executive-node {
    background: linear-gradient(135deg, #4a0000 0%, #2a0000 100%);
    border: 3px solid #ff0000;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    min-width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.executive-node:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
    background: linear-gradient(135deg, #6a0000 0%, #4a0000 100%);
}

.executive-title {
    font-size: 1.5em;
    color: #ff4444;
    margin-bottom: 15px;
    font-weight: bold;
    text-transform: uppercase;
}

.executive-name {
    font-size: 1.3em;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 600;
}

.executive-description {
    color: #cccccc;
    font-size: 0.95em;
    line-height: 1.4;
    margin-bottom: 15px;
}

/* Department Cards */
.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    justify-items: stretch;
    width: 100%;
}

.department-card {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    min-height: 300px;
    width: 100%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
    cursor: pointer;
}

.department-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
}

.department-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.department-head {
    font-size: 1.1em;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 600;
}

.department-description {
    color: #cccccc;
    font-size: 0.9em;
    line-height: 1.4;
    margin-bottom: 20px;
}

/* PA Department */
.pa-department {
    border: 2px solid #00ff88;
}

.pa-department .department-title {
    color: #00ff88;
}

.pa-department:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: #33ffaa;
}

/* Security Department */
.security-department {
    border: 2px solid #ffaa00;
}

.security-department .department-title {
    color: #ffaa00;
}

.security-department:hover {
    background: rgba(255, 170, 0, 0.1);
    border-color: #ffcc33;
}

/* R&D Department */
.rnd-department {
    border: 2px solid #00aaff;
}

.rnd-department .department-title {
    color: #00aaff;
}

.rnd-department:hover {
    background: rgba(0, 170, 255, 0.1);
    border-color: #33bbff;
}

/* Responsive */
@media (max-width: 768px) {
    .page-content {
        padding: 15px 10px;
    }
    
    .hierarchy-section {
        padding: 20px 15px;
    }
    
    .departments-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .page-content {
        padding: 10px 5px;
    }
    
    .hierarchy-section {
        padding: 15px 10px;
    }
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #444;
    border-radius: 15px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    position: relative;
    animation: slideIn 0.3s ease;
}

.close {
    color: #aaffee;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #ccffff;
    text-shadow: 0 0 3px #00ffff;
}

.modal-body {
    margin: 20px 0;
}

.modal-actions {
    text-align: center;
    margin-top: 20px;
}

.modal-link {
    color: #00ffff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    text-shadow: 0 0 3px #00ffff;
}

.modal-link:hover {
    color: #ccffff;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}
