/* Base styles with improved readability */
:root {
    --main-bg-color: #0a0a0a;
    --terminal-bg: rgba(22, 22, 26, 0.9);
    --terminal-text: #00dd00;
    --terminal-text-secondary: #00cc00;
    --accent-color: #1a8cff;
    --accent-color-2: #ff3e3e;
    --text-color: #f0f0f0;
    --text-color-secondary: #d0d0d0;
    --header-color: #ffffff;
    --border-color: #333333;
    --success-color: #00dd00;
    --warning-color: #ffcc00;
    --danger-color: #ff3030;
    --progress-color: #00aaff;
    --command-color: #888888;  /* Duller color for command-like text */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Roboto', 'Courier New', sans-serif; /* More readable fonts */
}

body {
    background-color: var(--main-bg-color);
    color: var(--text-color);
    line-height: 1.7; /* Increased line height for readability */
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    font-size: 16px; /* Base font size */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--header-color);
    margin-bottom: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1.2rem;
    max-width: 750px; /* Limit text width for better readability */
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color-2);
    text-decoration: underline; /* Add underline on hover for better accessibility */
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Darker overlay for better readability */
}

/* Visitor Info Section - More subtle */
.visitor-info {
    background-color: rgba(25, 25, 35, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.info-header {
    font-weight: bold;
    color: var(--warning-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 10px;
    font-size: 1rem;
}

.info-content {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 10px; /* Added gap for better spacing */
}

.info-item {
    width: calc(50% - 10px);
    padding: 5px 0;
}

.info-label {
    color: var(--accent-color);
    margin-right: 8px;
    font-weight: 600;
}

/* Main Content */
.main-content {
    flex: 1;
    background-color: var(--terminal-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    word-wrap: break-word; /* Ensures text wraps instead of overflowing */
    overflow-wrap: break-word;
}

/* Command-like text - duller appearance */
.command-text, .line:not(.output), .terminal-command, .console-prompt {
    color: var(--command-color);
    font-style: italic;
    opacity: 0.9;
    font-size: 0.95em;
}

/* Welcome Content */
.welcome-content {
    padding: 30px;
    animation: fadeIn 1s ease-in-out;
}

.profile-section {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 20px;
}

.profile-image {
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(0, 119, 255, 0.3);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
    min-width: 300px;
}

.profile-info h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(0, 119, 255, 0.3);
}

.profile-info h2 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 400;
}

.profile-info p {
    color: var(--text-color-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.mission-briefing {
    background-color: rgba(25, 25, 35, 0.7);
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid var(--warning-color);
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.mission-briefing h3 {
    color: var(--warning-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* Navigation Panel */
.navigation-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.nav-button, .action-button {
    background-color: rgba(30, 30, 40, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    color: var(--text-color);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-button:hover, .action-button:hover {
    background-color: rgba(40, 40, 50, 0.8);
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 119, 255, 0.2);
    border-color: var(--accent-color);
    text-decoration: none; /* Override the default a:hover */
}

.nav-button i, .action-button i {
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--accent-color);
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.action-button {
    min-width: 220px;
}

/* Improve scrollbar appearance */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color-2);
}

/* Button and Form Styles */
.btn {
    display: inline-block;
    padding: 12px 18px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    font-size: 1rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background-color: var(--accent-color-2);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn-success {
    background-color: var(--success-color);
    color: #000;
}

.btn-warning {
    background-color: var(--warning-color);
    color: #000;
}

.btn-danger {
    background-color: var(--danger-color);
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    margin-bottom: 18px;
    border: 1px solid var(--border-color);
    background-color: rgba(30, 30, 40, 0.7);
    color: var(--text-color);
    border-radius: 6px;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 12px rgba(0, 119, 255, 0.3);
    background-color: rgba(35, 35, 45, 0.8);
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--accent-color);
    font-weight: 500;
}

/* Card Styles */
.card {
    background-color: rgba(25, 25, 35, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.card-header {
    background-color: rgba(30, 30, 40, 0.8);
    padding: 18px;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    color: var(--accent-color);
    margin: 0;
    font-size: 1.3rem;
}

.card-body {
    padding: 20px;
    line-height: 1.7;
}

.card-footer {
    background-color: rgba(30, 30, 40, 0.6);
    padding: 15px;
    border-top: 1px solid var(--border-color);
}

/* Custom Scrolling Containers */
.scrollable-content {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
    margin-right: -10px;
}

/* Improved text containers */
.text-container {
    background-color: rgba(25, 25, 35, 0.7);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
}

.terminal-output {
    font-family: 'Consolas', 'Courier New', monospace;
    background-color: rgba(10, 10, 15, 0.7);
    color: var(--terminal-text);
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    overflow-x: auto;
    max-width: 100%;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Code blocks with proper wrapping */
pre, code {
    font-family: 'Consolas', 'Courier New', monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-width: 100%;
    background-color: rgba(20, 20, 30, 0.7);
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    font-size: 0.95rem;
    overflow-x: auto;
}

code {
    padding: 2px 5px;
    background-color: rgba(30, 30, 40, 0.7);
    border-radius: 3px;
    display: inline-block;
    margin: 0 2px;
}

/* Navigation logo styling - INCREASED SIZE */
.nav-logo {
    margin-right: 30px;
}

.nav-logo img {
    height: 60px; /* Increased from 40px */
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.nav-logo img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px var(--accent-color));
}

/* Main Nav Styling */
.main-nav {
    background-color: rgba(20, 20, 30, 0.9);
    padding: 15px;
    position: sticky;
    top: 40px;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.nav-content {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.nav-link {
    padding: 8px 12px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-link i {
    margin-right: 5px;
}

.nav-link:hover {
    background-color: rgba(0, 119, 255, 0.2);
    color: white;
    text-decoration: none;
}

.nav-link.active {
    background-color: var(--accent-color);
    color: white;
}

/* Contact Page Logo Styling */
.contact-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 119, 255, 0.4);
    transition: transform 0.3s ease;
}

.contact-logo:hover {
    transform: scale(1.05);
}

/* Footer styling */
.main-footer {
    background-color: rgba(20, 20, 30, 0.8);
    padding: 15px;
    border-top: 1px solid var(--border-color);
    margin-top: 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 15px;
}

.footer-links a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(30, 30, 40, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

/* Home page intro with logo */
.typed-intro {
    max-width: 700px;
    margin: 0 auto 30px auto;
    padding: 20px;
    background-color: rgba(30, 30, 40, 0.7);
    border-radius: 8px;
    font-size: 1.1rem;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 20px;
}

.intro-logo {
    width: 100px;
    min-width: 100px;
    height: 100px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 119, 255, 0.3);
}

/* Error pages */
.error-container {
    text-align: center;
    padding: 50px 20px;
}

.error-code {
    font-size: 6rem;
    color: var(--danger-color);
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.error-title {
    font-size: 2rem;
    color: var(--warning-color);
    margin-bottom: 20px;
}

.error-message {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.back-btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background-color: var(--accent-color-2);
    transform: translateY(-3px);
}

.back-btn i {
    margin-right: 5px;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.p-1 {
    padding: 0.5rem;
}

.p-2 {
    padding: 1rem;
}

.p-3 {
    padding: 1.5rem;
}

.d-flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-column {
    flex-direction: column;
}

/* Badge styles */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-right: 5px;
    margin-bottom: 5px;
}

.badge-primary {
    background-color: var(--accent-color);
    color: white;
}

.badge-success {
    background-color: var(--success-color);
    color: black;
}

.badge-warning {
    background-color: var(--warning-color);
    color: black;
}

.badge-danger {
    background-color: var(--danger-color);
    color: white;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/*.nav-toggle {*/
/*  display: none;*/
/*  background: none;*/
/*  border: none;*/
/*  color: var(--text-color);*/
/*  font-size: 1.5rem;*/
/*  cursor: pointer;*/
  z-index: 1000; /* Ensure it's above other elements */
/*}*/

/* Responsive styles for mobile */
/*@media (max-width: 768px) {*/
/*  .nav-toggle {*/
/*      display: block;*/
/*  }*/
  
/*  .nav-links {*/
/*      position: fixed;*/
/*      display:block;*/
/*      top: 0;*/
/*      right: -100%;*/
/*      width: 80%;*/
/*      height: 100vh;*/
      /*background-color: var(--dark-bg);*/
      /* padding: 4rem 2rem 2rem;  Add top padding for the menu */
/*      transition: all 0.3s ease;*/
/*      z-index: 99;*/
/*      box-shadow: none;*/
/*  }*/
/*}*/

.nav-toggle {
    display: none !important;
    background: none;
    border: none;
    color: #F0FFFF;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
    .nav-toggle {
        display: block !important; 
    } 
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Start off-screen */
        width: 80%;
        height: 100vh;
        /*background-color: var(--dark-bg);*/
        padding: 4rem 2rem 2rem;  /* Add top padding for the menu */
        transition: right 0.3s ease;
        z-index: 99;
        display: block;
        
        background-color: rgba(20, 20, 30, 0.9);
        padding: 15px;
        /*position: sticky;*/
        /*top: 40px;*/
        /*z-index: 100;*/
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 20px;
    }
    
    /* Style for navigation links in mobile view */
    .nav-links .nav-link {
        display: block;
        padding: 1rem 0;
        margin: 0.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }
    
    .container {
        padding: 15px;
    }
    
    .profile-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .info-item {
        width: 100%;
    }
    
    .navigation-panel {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-button {
        width: 100%;
    }
    
    .nav-content {
        flex-direction: column;
    }
    
    .nav-logo {
        margin-right: 0;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .nav-links {
        justify-content: center;
    }
    
    .typed-intro {
        flex-direction: column;
        text-align: center;
    }
    
    pre, code {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 10px;
    }
    
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }
    
    .profile-info h1 {
        font-size: 1.7rem;
    }
    
    .profile-info h2 {
        font-size: 1.1rem;
    }
    
    .welcome-content,
    .card-body,
    .text-container {
        padding: 15px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
    }
}

