/* Student Name: [Your Name]
Course: Web Development
Project: CyberSafe
*/

/* General Body Settings */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    /* CHANGED: Back to the "Cyber" Deep Navy */
    background-color: #0f172a;
    color: #f1f5f9; /* Light text so it shows on dark bg */
    line-height: 1.6;
}

/* Navigation Bar Styles */
header {
    background-color: #1e293b; /* Slightly lighter navy for header */
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

nav {
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #0ea5e9; /* Cyber Blue Logo */
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #f1f5f9;
    font-size: 16px;
}

.nav-links a:hover {
    color: #0ea5e9; /* Cyber Blue hover */
    text-decoration: underline;
}

/* Mobile Menu Button (Hidden on Desktop) */
.menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Main Layout Container */
.container {
    width: 90%;
    max-width: 1000px;
    margin: 30px auto;
    min-height: 500px;
}

/* Headings */
h1 {
    color: #0ea5e9; /* Cyber Blue */
    border-bottom: 2px solid #0ea5e9;
    padding-bottom: 10px;
}

h2 {
    color: #0ea5e9; /* Cyber Blue */
    margin-top: 30px;
}

h3 {
    color: #0ea5e9; /* Changed to Cyber Blue to match theme */
}

/* Home Page "Hero" Banner */
.hero-banner {
    background-color: #1e293b; /* CHANGED: Dark Card Background */
    color: #f1f5f9; /* Light Text */
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #334155; /* Dark Border */
}

.button-link {
    display: inline-block;
    background-color: #c0392b;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
}

.button-link:hover {
    background-color: #a93226;
}

/* Cards Layout (Simple Flexbox) */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.info-card {
    background-color: #1e293b; /* CHANGED: Dark Card Background */
    color: #f1f5f9; /* Light Text */
    border: 1px solid #334155; /* Dark Border */
    padding: 20px;
    border-radius: 8px;
    flex: 1;
    min-width: 250px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

/* Icons */
.icon-svg {
    width: 40px;
    height: 40px;
    fill: #0ea5e9; /* CHANGED: Light Blue Icon to show on dark bg */
    margin-bottom: 10px;
}

.nav-icon {
    width: 24px;
    height: 24px;
    fill: #0ea5e9;
    margin-right: 10px;
}

/* Table Styles (For Tools Page) */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #1e293b; /* CHANGED: Dark Table Background */
    color: #f1f5f9;
}

table, th, td {
    border: 1px solid #334155; /* Dark Border */
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    background-color: #0f172a; /* Darker header for contrast */
    color: white;
}

tr:nth-child(even) {
    background-color: #0f172a; /* Dark stripe */
}

/* Quiz Styles */
.quiz-box {
    border: 1px solid #334155;
    padding: 30px;
    border-radius: 8px;
    background-color: #1e293b; /* CHANGED: Dark Box */
    color: #f1f5f9;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.question-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #334155;
    padding-bottom: 15px;
}

/* Footer */
footer {
    background-color: #1e293b;
    color: #94a3b8; /* Muted grey text */
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #1e293b; /* Match header */
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    .nav-links.show-menu {
        display: flex;
    }

    .menu-btn {
        display: block;
    }
}
