:root {
    --primary-color: #222222;    /* Charcoal Black */
    --accent-color: #FF8800;     /* Orange */
    --secondary-color: #A54657;   /* Dark Red */
    --tertiary-color: #8BBEB2;    /* Teal */
    --highlight-color: #D6EF8A;  /* Pale Green */
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
}

h1, h2, h3, h4, a {
    font-family: 'RobotoMono', sans-serif;
    color: #2a2a2a;
}

/* Header styles */
header {
    background-color: #2a2a2a;
    color: white;
    text-align: center;
    padding-top: 2rem;
}

header h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tagline {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin: 1rem 0.5rem;
}

/* Navigation */
nav {
    background-color: #404040;
    padding: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav a i {
    font-size: 1.2rem;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

nav a:hover {
    background-color: #2a2a2a;
    color: var(--accent-color);
}

nav a:hover::after {
    width: 100%;
}

/* Main content */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Card styles */
.card {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card h2 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
    color: #2a2a2a;
    font-size: 1.8rem;
}

/* About section */
.about-section img {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    margin: 0 1rem 1rem 0;
    float: left;
}

.skills {
    clear: both;
    margin-top: 2rem;
}

.skill-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.skill-category h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.skill-category ul {
    width: 60%;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.skill-category ul li {
    padding: 0.2rem 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-category ul li::before {
    content: '•';
    color: var(--accent-color);
}

/* Projects sections */
.projects-section {
    scroll-margin-top: 2rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.project {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project.featured {
    border-left: 4px solid var(--accent-color);
}

.project h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.project p {
    color: #666;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.project-tags span {
    background-color: #f5f5f5;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    color: #666;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--secondary-color);
}

/* Project Categories */
.project-categories {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-category {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.category-toggle {
    width: 100%;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.toggle-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-toggle:hover {
    background-color: #e0e0e0;
}

.category-toggle.active {
    background-color: var(--accent-color);
    color: white;
}

.category-toggle .fa-chevron-down {
    transition: transform 0.3s ease;
}

.category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: white;
}

/* Contact section */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 1.1rem;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Footer styles */
footer {
    background-color: #2a2a2a;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
}

footer p {
    margin: 0.5rem 0;
}

/* Responsive design */
@media (max-width: 768px) {
    main {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .about-section img {
        float: none;
        display: block;
        margin: 0 auto 1rem;
    }

    nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    nav a {
        width: 100%;
        justify-content: center;
    }
}