/* ====================================
   1. CSS Variables (Custom Properties)
   ==================================== */
   :root {
    --primary-color: #000000;
    --secondary-color: #000000;
    --accent-color: #333333;
    --text-color: #000000;
    --background-color: #ffffff;
    --hover-color: #f0f0f0;
    --box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ====================================
   2. Global Styles
   ==================================== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    padding: 20px;
    font-size: 1em;
    font-weight: 300;
    background-color: var(--background-color);
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* ====================================
   3. Typography & Links
   ==================================== */
h3 {
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-size: 1em;
}

a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

a:visited {
    color: var(--primary-color);
    text-decoration: underline;
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* ====================================
   4. Header Styles
   ==================================== */
.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.name-title {
    color: var(--primary-color);
    font-size: 2em;
    margin: 0;
    line-height: 1;
    padding-bottom: 0;
    font-weight: 300;
    text-align: center;
}

.contact-icons {
    display: flex;
    gap: 20px;
    padding-bottom: 8px;
    height: 24px;
    justify-content: center;
}

.contact-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    color: var(--secondary-color);
}

.contact-icon:hover {
    transform: translateY(-2px);
    color: var(--primary-color);
}

/* Touch-friendly improvements for mobile */
@media (hover: none) and (pointer: coarse) {
    .contact-icon:hover {
        transform: none;
    }
    
    .contact-icon:active {
        transform: scale(0.95);
    }
    
    .toggle:hover {
        color: inherit;
    }
    
    .toggle:active {
        color: var(--primary-color);
    }
}

/* ====================================
   5. Bio Section
   ==================================== */
.bio-text {
    color: var(--text-color);
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 300;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ====================================
   6. Section Toggles
   ==================================== */
.toggle {
    display: inline-block;
    cursor: pointer;
    font-weight: 300;
    max-width: 90%;
    text-align: center;
}

.toggle:hover {
    color: var(--primary-color);
}

.content {
    display: none;
    margin-top: 10px;
    padding-left: 25px;
    border-left: 3px solid var(--primary-color);
    animation: fadeIn 0.3s ease;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Skills section overrides the default content style */
#skills.content {
    border-left: 1px solid var(--hover-color);
}

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

/* ====================================
   7. Lists
   ==================================== */
ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
    font-size: 1em;
    line-height: 1.4;
}

ul li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* ====================================
   8. Work Experience Section
   ==================================== */
#work h3 {
    margin-bottom: 5px;
}

#work p {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--accent-color);
}

#work ul {
    margin-top: 10px;
    margin-bottom: 25px;
}

/* Enhanced work experience styling */
#work ul li {
    margin-bottom: 12px;
    line-height: 1.5;
}

/* Remove bold styling from company names */
#work strong {
    font-weight: 300;
    color: var(--primary-color);
}

/* Style dates to be slightly greyed out */
#work li {
    position: relative;
}

/* Target date patterns in parentheses */
#work li:not(:has(ul)) {
    color: var(--text-color);
}

/* Make dates greyed out while keeping company names bold */
#work li:not(:has(ul))::after {
    content: "";
}

/* Style the date text specifically */
#work li:not(:has(ul)) {
    font-weight: 300;
}

/* Make the main work items light weight */
#work > ul > li {
    font-weight: 300;
    margin-bottom: 4px;
}

/* Style nested details with better contrast */
#work ul ul li {
    font-weight: 300;
    color: var(--accent-color);
    margin-bottom: 6px;
    font-size: 0.95em;
}

/* Target dates in parentheses specifically */
#work li:not(:has(ul)) {
    font-weight: 300;
}

/* Make dates greyed out using a more specific approach */
#work li:not(:has(ul)) {
    color: #666666;
}

/* Keep company names light weight and black */
#work li:not(:has(ul)) strong {
    color: var(--primary-color);
    font-weight: 300;
}

/* Improve overall text contrast and readability */
#work {
    color: #333333;
}

/* Make the Writing section light weight */
#work p {
    font-weight: 300;
    color: var(--primary-color);
}

/* Enhanced overall text visibility and contrast */
body {
    color: #2c2c2c;
    font-weight: 300;
}

/* Improve bio text readability */
.bio-text {
    color: #2c2c2c;
    font-weight: 300;
    line-height: 1.7;
}

/* Make main headings light weight */
.name-title {
    font-weight: 300;
    color: #1a1a1a;
}

/* Improve work section overall visibility */
#work {
    color: #2c2c2c;
    font-weight: 300;
}

/* Make company links light weight and underlined */
#work a {
    font-weight: 300;
    color: #1a1a1a;
    text-decoration: underline;
}

#work a:hover {
    color: #333333;
    text-decoration: underline;
}

/* Improve Writing section styling */
#work p:last-of-type {
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 300;
    color: #1a1a1a;
}

/* ====================================
   9. Skills Grid
   ==================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.skill-category {
    background-color: white;
    padding: 20px;
    border-radius: 4px;
    box-shadow: var(--box-shadow);
}

.skill-category h3 {
    font-size: 1em;
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 3px solid var(--primary-color);
}

/* New Skills Container Layout */
.skills-container {
    display: flex;
    gap: 40px;
    margin-top: 15px;
}

.skills-column {
    flex: 1;
}

.skills-column h3 {
    font-size: 1em;
    margin: 25px 0 8px 0;
    color: var(--primary-color);
    border-bottom: 1px solid var(--hover-color);
    padding-bottom: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 300;
}

.skills-column h3:first-of-type {
    margin-top: 0;
}

.skills-column ul {
    margin-bottom: 20px;
    list-style-type: none;
    padding-left: 0;
}

/* Override the bullet points for skills section */
#skills ul li {
    padding-left: 0;
    margin-bottom: 4px;
    font-size: 1em;
    color: var(--accent-color);
}

#skills ul li:before {
    content: none;
}

@media (max-width: 600px) {
    .skills-container {
        flex-direction: column;
        gap: 5px;
    }
    
    .skills-column h3 {
        margin-top: 20px;
    }
}

/* ====================================
   10. Tool Logos
   ==================================== */
/* Update these styles in your Tool Logos section */
.tool-logos {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.tool-logo {
    width: 32px; /* Slightly larger size */
    height: 32px;
    min-width: 32px; /* Prevent shrinking */
    min-height: 32px;
    transition: transform 0.2s ease;
    object-fit: contain;
    display: block; /* Ensures consistent spacing */
    filter: grayscale(0%); /* Optional: remove if you want original colors */
}

.tool-logo-with-bg {
    background-color: white;
    border-radius: 4px;
    padding: 2px;
}

.tool-logo:hover {
    transform: translateY(-2px);
    filter: grayscale(0%); /* Shows original colors on hover if using grayscale */
}

/* ====================================
   11. Responsive Design
   ==================================== */
@media (max-width: 1200px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 15px;
        font-size: 1em;
        line-height: 1.6;
    }
    
    .main-container {
        padding: 0 15px;
    }
    
    .name-title {
        font-size: 1.8em;
    }
    
    .contact-icons {
        gap: 15px;
    }
    
    .contact-icon {
        width: 22px;
        height: 22px;
    }
    
    .bio-text {
        margin-bottom: 20px;
        font-size: 1em;
        max-width: 100%;
    }
    
    .content {
        padding-left: 20px;
        max-width: 100%;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .skill-category {
        padding: 15px;
    }
    
    .skills-container {
        flex-direction: column;
        gap: 5px;
    }
    
    .skills-column h3 {
        margin-top: 20px;
    }
}

@media (max-width: 600px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .skill-category {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
        font-size: 1em;
        line-height: 1.6;
    }
    
    .main-container {
        padding: 0 10px;
    }
    
    .name-title {
        font-size: 1.6em;
    }
    
    .contact-icons {
        gap: 12px;
    }
    
    .contact-icon {
        width: 20px;
        height: 20px;
    }
    
    .header-container {
        margin-bottom: 15px;
        gap: 15px;
    }
    
    .bio-text {
        margin-bottom: 20px;
        font-size: 1em;
    }
    
    .content {
        padding-left: 15px;
    }
    
    ul li {
        margin-bottom: 6px;
        padding-left: 12px;
    }
    
    #work {
        margin-top: 10px;
    }
    
    #work ul {
        margin-top: 8px;
        margin-bottom: 20px;
    }
}