:root {
    --background-color: #2A2420;
    --text-color: #E6D5B8;
    --accent-color: #E59560;
    --secondary-accent: #A45C40;
    --highlight-color: #F2A65A;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-size: clamp(14px, 4vw, 16px);
}

h1, h2, h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

h1 {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

h2 {
    font-size: clamp(1.2rem, 5vw, 2rem);
}

header, main, footer {
    padding: 1rem;
}

section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--secondary-accent);
}

section:last-child {
    border-bottom: none;
}

nav ul {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

nav a {
    text-decoration: none;
    color: var(--highlight-color);
    font-weight: bold;
    transition: color 0.3s ease;
    padding: 0.5rem;
    display: block;
}

nav a:hover {
    color: var(--accent-color);
}

.cybersecurity-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    background-color: var(--accent-color);
}

.cta-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--secondary-accent);
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--highlight-color);
    color: var(--background-color);
    transform: scale(1.05);
}

.read-more {
    background-color: var(--secondary-accent);
    color: var(--text-color);
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: var(--highlight-color);
    color: var(--background-color);
}

#full-post {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(42, 36, 32, 0.9);
    overflow-y: auto;
    padding: 2rem;
    z-index: 1000;
}

#full-post-content {
    background-color: var(--background-color);
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
}

#close-post {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background-color: var(--secondary-accent);
    color: var(--text-color);
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#close-post:hover {
    background-color: var(--highlight-color);
    color: var(--background-color);
}

.hidden {
    display: none;
}

pre {
    background-color: #1A1614;
    color: var(--accent-color);
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
}

code {
    font-family: 'Courier New', Courier, monospace;
}

.about-container, 
.education-container, 
.experience-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 20px 0;
}

.about-image, 
.education-image, 
.experience-image {
    max-width: 200px;
    height: auto;
    border-radius: 10px;
    flex-shrink: 0;
}

.about-container p, 
.education-container p, 
.experience-container p {
    flex: 1;
    text-align: justify;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
        max-width: 100%;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav li {
        margin-bottom: 0.5rem;
        width: 100%;
        text-align: center;
    }

    .about-container, 
    .education-container, 
    .experience-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-image, 
    .education-image, 
    .experience-image {
        max-width: 200px;
        margin-bottom: 15px;
    }

    .about-container p, 
    .education-container p, 
    .experience-container p {
        text-align: center;
    }

    section {
        padding-bottom: 1rem;
    }

    #full-post {
        padding: 1rem;
    }

    #full-post-content {
        padding: 1rem;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 1s ease-in;
}

/* Enhanced Projects Section Styling */
.project-list {
    list-style-type: none;
    padding: 0;
}

.project-list li {
    background-color: rgba(164, 92, 64, 0.1); /* Secondary accent with transparency */
    border-left: 4px solid var(--accent-color);
    border-radius: 0 8px 8px 0;
    margin-bottom: 1.5rem;
    padding: 1.2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.project-list li h3 {
    margin-top: 0;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    color: var(--highlight-color);
}

.project-list li .project-title {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--highlight-color);
    margin-bottom: 0.8rem;
    display: block;
}

.project-list li p {
    margin-top: 0.8rem;
    margin-bottom: 0;
    line-height: 1.6;
    text-align: justify;
}

.project-list .project-link {
    display: inline-block;
    color: var(--highlight-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.project-list .project-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.project-tag {
    display: inline-block;
    background-color: var(--secondary-accent);
    color: var(--text-color);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.8rem;
}

/* Adjustments for tablet and mobile */
@media (max-width: 768px) {
    .project-list li {
        padding: 1rem;
    }
}