:root {
    --accent: #a26e39;
    --sidebar-bg: #a9afa3;
    --highlight: #043801;
    --text-dark: #333;
    --light-bg: #fdfdfd;
    --font-main: Arial, sans-serif;
}

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

body {
    margin: 0;
    font-family: var(--font-main);
    background-color: var(--light-bg);
    color: var(--text-dark);
}

/* Mobile-first stacked layout */
.container {
    display: flex;
    flex-direction: column;
}

/* Sidebar */
.sidebar {
    background-color: var(--sidebar-bg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-photo {
    width: 25%;
    max-width: 150px;
    border-radius: 50%;
    display: block;
    margin: 0 auto 1rem;
}

@media (min-width: 768px) {
    .profile-photo {
        width: 80%;
    }
}

/* All section titles */
h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

/* Collapsible section header behavior (excluding Contact section) */
.collapsible:not(.contacts) h2 {
    cursor: pointer;
    position: relative;
    padding-right: 1.5rem;
}

.collapsible:not(.contacts) h2::after {
    content: "▼";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 0.8rem;
    color: #444;
    transition: transform 0.3s ease;
}

.collapsible:not(.contacts).collapsed h2::after {
    transform: rotate(-90deg);
}

/* Collapsible content */
.section-content {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
    max-height: 1000px;
    opacity: 1;
}

.collapsible:not(.contacts).collapsed .section-content {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

/* Skills list */
.skills ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skills li {
    margin-bottom: 4px;
}

/* Main content */
.content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 0;
}

header h2 {
    font-size: 1.2rem;
    font-weight: normal;
    color: #666;
    margin-top: 0;
}

.highlight {
    color: var(--highlight);
}

/* Section headers */
.summary h2,
.experience h2,
.interests h2 {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

/* Experience layout */
.experience ul {
    padding-left: 1.25rem;
}

.experience h3 {
    margin-bottom: 0;
}

.experience h4 {
    margin-top: 0;
    font-weight: normal;
    font-size: 0.95rem;
    color: #666;
}

/* Interests icons */
.interests p {
    font-size: 1.5rem;
}

/* Responsive desktop layout */
@media (min-width: 768px) {
    .container {
        display: grid;
        grid-template-columns: 300px 1fr;
        min-height: 100vh;
    }

    .sidebar {
        min-height: 100vh;
    }

    .profile-photo {
        width: 80%;
    }

    /* Disable collapse behavior on desktop */
    .collapsible h2 {
        cursor: default;
    }

    .collapsible h2::after {
        display: none;
    }

    .section-content {
        max-height: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

/* Projects Section */
.projects .item {
    margin-bottom: 2rem;
}

.projects h3 {
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--highlight);
}

.projects ul {
    padding-left: 1.25rem;
}

.projects a {
    color: var(--accent);
    text-decoration: none;
}

.projects a:hover {
    text-decoration: underline;
}

.projects .item {
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 1rem;
    background-color: #fff;
}