body {
    font-family: sans-serif;
    margin: 0;
    background-color: #121212; 
    color: #eee; 
}

.container {
    display: flex;
    max-width: 1200px;
    margin: 20px auto; 
    background-color: #1e1e1e; 
    border-radius: 8px; 
    overflow: hidden; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
}

.sidebar {
    width: 300px;
    padding: 20px;
    background-color: #282828; 
    border-right: 1px solid #333; 
}

.sidebar img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1em;
}

.sidebar h1, .sidebar p, .sidebar a {
    color: #eee;
}

.content {
    flex: 1;
    padding: 20px;
}

.section {
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}

.title {
    font-size: 2em;
    margin-bottom: 10px;
    color: #00bcd4;
}

.skill {
    margin-bottom: 10px;
    color: #eee;
}

.progress {
    height: 10px;
    background-color: #333; 
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #00bcd4; 
    border-radius: 5px;
}

footer {
    text-align: center;
    padding: 10px;
    background-color: #282828;
    color: #eee;
}

.social-links {
    margin-top: 1em;
}

.social-links a {
    color: #00bcd4;
    text-decoration: none;
    margin: 0 0.5em;
}

a {
    color:#00bcd4;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

.button {
    display: inline-block; 
    padding: 10px 20px;
    background-color: #007bff; 

    border: none;
  color: white;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
}

.button:hover {
    background-color: #0056b3; 
}

.button:active {
    background-color: #004085; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) inset; 
    transform: translateY(1px); 
}

/* Projects Grid & Cards */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.project-card {
    background-color: #282828;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-decoration: none;
}

.project-image img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.project-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    margin: 0 0 10px 0;
    color: #00bcd4;
    font-size: 1.2em;
}

.project-info p {
    font-size: 0.9em;
    color: #ccc;
    margin-bottom: 15px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
    color: #888;
}

.project-meta .language {
    background-color: #333;
    padding: 3px 8px;
    border-radius: 4px;
    color: #eee;
}

.project-meta .stars {
    display: flex;
    align-items: center;
}

/* Project Table Styles */
.projects-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background-color: #282828;
    border-radius: 8px;
    overflow: hidden;
}

.projects-table th, .projects-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #333;
}

.projects-table th {
    background-color: #333;
    color: #00bcd4;
    font-weight: bold;
}

.projects-table tr:hover {
    background-color: #2d2d2d;
}

.projects-table td a {
    color: #00bcd4;
    font-weight: bold;
}

/* Search Input */
#project-search {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #333;
    background-color: #282828;
    color: #eee;
    font-size: 1em;
    box-sizing: border-box;
}

#project-search:focus {
    outline: none;
    border-color: #00bcd4;
}

/* Redacted View */
.redacted-mode .content, 
.redacted-mode .sidebar {
    position: relative;
}

.redacted-mode p, 
.redacted-mode h1, 
.redacted-mode h2, 
.redacted-mode h3, 
.redacted-mode td, 
.redacted-mode th, 
.redacted-mode span,
.redacted-mode li,
.redacted-mode a {
    color: transparent !important;
    background-color: black !important;
    text-shadow: none !important;
    border-radius: 3px;
    user-select: none;
}

.redacted-mode img {
    filter: brightness(0);
}

.redacted-mode .progress-bar {
    background-color: black !important;
}

.redacted-control {
    margin-bottom: 20px;
    text-align: right;
}

.redacted-checkbox {
    cursor: pointer;
}

.redacted-text {
    color: transparent !important;
    background-color: black !important;
    text-shadow: none !important;
    border-radius: 3px;
    user-select: none;
}