/* In your style.css */
:root {
    --bg-color: #ffffff;
    --text-color: #222222;
    --dot-color: #404040;
    --primary-red: #e53935;
    --button-bg: #2c2c2c;
    --button-text: #ffffff;
    --hover-button-bg: #444444;

    --card-base-bg-light: #f4f6f8;
    --card-border-light: rgba(var(--text-color-rgb), 0.1);
    --card-shadow-light: 0 8px 25px rgba(0, 0, 0, 0.07);

    --primary-red-rgb: 229, 57, 53;
    --text-color-rgb: 34, 34, 34;
    --card-base-bg-light-rgb: 244, 246, 248;
    --bg-color-rgb: 255, 255, 255;

    --cta-secondary-bg: rgba(var(--text-color-rgb), 0.05);
    --cta-secondary-border: rgba(var(--text-color-rgb), 0.15);
    --cta-secondary-text: var(--text-color);
    --cta-secondary-bg-hover: rgba(var(--text-color-rgb), 0.1);
    --cta-secondary-border-hover: rgba(var(--primary-red-rgb), 0.7);
    --cta-secondary-text-hover: var(--primary-red);

    /* Skill Nebula/Orb Specifics */
    --skill-orb-bg-light: rgba(var(--card-base-bg-light-rgb), 0.4);
    --skill-orb-border-light: rgba(var(--text-color-rgb), 0.05);
    --skill-orb-shadow-light: 0 15px 40px rgba(0,0,0,0.08);
    --skill-orb-hover-shadow-light: 0 20px 55px rgba(0,0,0,0.12);
    --skill-orb-glow-light: var(--primary-red);
    --skill-node-bg-light: rgba(var(--bg-color-rgb), 0.7);
    --skill-node-border-light: rgba(var(--text-color-rgb),0.1);
    --skill-text-node-bg-light: rgba(var(--text-color-rgb), 0.05);
    --skill-text-node-border-light: rgba(var(--text-color-rgb), 0.1);
}

body.dark-mode {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --dot-color: #cccccc;
    --button-bg: #3a3a3a;
    --button-text: #e0e0e0;
    --hover-button-bg: #555555;

    --card-base-bg-dark: #252930;
    --card-border-dark: rgba(var(--text-color-rgb), 0.15);
    --card-shadow-dark: 0 8px 30px rgba(0, 0, 0, 0.15);
    
    --text-color-rgb: 224, 224, 224;
    --card-base-bg-dark-rgb: 37, 41, 48;
    --bg-color-rgb: 26, 26, 26;

    --cta-secondary-bg: rgba(var(--text-color-rgb), 0.08);
    --cta-secondary-border: rgba(var(--text-color-rgb), 0.2);
    --cta-secondary-text: var(--text-color);
    --cta-secondary-bg-hover: rgba(var(--text-color-rgb), 0.15);
    --cta-secondary-border-hover: var(--primary-red);
    --cta-secondary-text-hover: var(--primary-red);

    /* Skill Orb Specifics - Dark */
    --skill-orb-bg-dark: rgba(var(--card-base-bg-dark-rgb), 0.5);
    --skill-orb-border-dark: rgba(var(--text-color-rgb), 0.08);
    --skill-orb-shadow-dark: 0 15px 45px rgba(0,0,0,0.25);
    --skill-orb-hover-shadow-dark: 0 20px 60px rgba(0,0,0,0.35);
    --skill-orb-glow-dark: var(--primary-red);
    --skill-node-bg-dark: rgba(var(--bg-color-rgb), 0.2);
    --skill-node-border-dark: rgba(var(--text-color-rgb),0.15);
    --skill-text-node-bg-dark: rgba(var(--text-color-rgb), 0.1);
    --skill-text-node-border-dark: rgba(var(--text-color-rgb), 0.2);
}

/* ... (Keep all previous CSS from header down to the end of .contact-item media query) ... */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--bg-color); color: var(--text-color);
    overflow-x: hidden; min-height: 100vh; position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}
#dotsCanvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 40px; color: var(--text-color); position: relative; z-index: 100;
}
.header-left, .header-right { display: flex; align-items: center; gap: 15px; }
.header-left a i, .header-right a i { font-size: 1.3rem; color: var(--text-color); transition: color 0.3s ease; }
.header-left a:hover i, .header-right a:hover i { color: var(--primary-red); }
.header-right a {
    text-decoration: none; color: var(--text-color); font-weight: 500;
    font-size: 0.9rem; transition: color 0.3s ease; display: inline-flex; align-items: center;
}
.header-right a:hover { color: var(--primary-red); }
.header-right a > .fab.fa-linkedin, .header-right a > .fas.fa-file-alt, .header-right a > .fas.fa-envelope { margin-right: 6px; }
.theme-toggle { display: flex; align-items: center; }
.theme-switch__input { display: none; }
.theme-switch__label {
    display: block; width: 50px; height: 26px; background-color: var(--button-bg);
    border-radius: 13px; position: relative; cursor: pointer; transition: background-color 0.3s ease;
}
.theme-switch__label span {
    display: block; width: 20px; height: 20px; background-color: white;
    border-radius: 50%; position: absolute; top: 3px; left: 3px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.theme-switch__label::before, .theme-switch__label::after {
    font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute;
    top: 50%; transform: translateY(-50%); font-size: 12px; color: white;
}
.theme-switch__label::before { content: "\f186"; left: 7px; opacity: 0; }
.theme-switch__label::after { content: "\f185"; right: 7px; opacity: 1; }
.theme-switch__input:checked + .theme-switch__label span { transform: translateX(24px); }
.theme-switch__input:checked + .theme-switch__label::before { opacity: 1; }
.theme-switch__input:checked + .theme-switch__label::after { opacity: 0; }

main {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: calc(100vh - 100px);
    padding: clamp(40px, 10vh, 100px) 20px;
    text-align: center;
    position: relative; z-index: 5;
    overflow: hidden; 
}

.main-heading {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: clamp(2.5rem, 8vw, 5.2rem); 
    font-weight: 800; 
    font-style: italic; 
    color: var(--text-color); 
    letter-spacing: -0.025em; 
    text-transform: uppercase;
    position: relative; 
    overflow: hidden;   
    margin-bottom: clamp(50px, 8vh, 70px); 
    transform: none; 
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: initial;
    -webkit-text-stroke: none;
    text-shadow: 0px 1px 1px rgba(0,0,0,0.05); 
    text-rendering: optimizeLegibility; 
    z-index: 1; 
    cursor: default; 
    padding: 10px 5px; 
}

.main-heading::before { 
    content: '';
    position: absolute;
    top: 0;
    left: 75%; 
    width: 100%; 
    height: 100%;
    background: linear-gradient(
        110deg, 
        transparent 25%, 
        rgba(255, 255, 255, 0.6) 40%, 
        rgba(255, 255, 255, 0.9) 50%, 
        rgba(255, 255, 255, 0.6) 60%,
        transparent 75%
    );
    transform: skewX(-25deg); 
    transition: left 0.7s cubic-bezier(0.23, 1, 0.32, 1); 
    z-index: 0; 
    pointer-events: none; 
}

.main-heading:hover::before {
    left: -75%; 
}

body.dark-mode .main-heading {
    color: var(--text-color);
    text-shadow: 0px 1px 1px rgba(0,0,0,0.15); 
}

body.dark-mode .main-heading::before {
    background: linear-gradient(
        110deg,
        transparent 25%,
        rgba(255, 255, 255, 0.12) 40%, 
        rgba(255, 255, 255, 0.20) 50%,
        rgba(255, 255, 255, 0.12) 60%,
        transparent 75%
    );
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; 
    position: relative; 
}

.cta-button {
    background-color: var(--cta-secondary-bg);
    color: var(--cta-secondary-text);
    text-decoration: none;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 8px;
    border: 1px solid var(--cta-secondary-border);
    min-width: 180px;
    text-align: center;
    overflow: hidden; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(5px); 
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.02);
    background-color: var(--cta-secondary-bg-hover);
    border-color: var(--cta-secondary-border-hover);
    color: var(--cta-secondary-text-hover);
    box-shadow: 0 8px 25px rgba(var(--primary-red-rgb),0.15);
}
body.dark-mode .cta-button:hover {
    box-shadow: 0 8px 25px rgba(var(--primary-red-rgb),0.25);
}

.cta-button span {
    display: inline-flex;
    align-items: center;
    gap: 8px; 
}
.cta-button span i {
    font-size: 1em; 
    transition: transform 0.3s ease;
}
.cta-button:hover span i {
    transform: scale(1.1) rotate(-5deg);
}

.cta-button.merch-button {
    background-color: var(--primary-red);
    color: #ffffff; 
    border-color: var(--primary-red);
    backdrop-filter: none; 
    -webkit-backdrop-filter: none;
    box-shadow: 0 5px 20px rgba(var(--primary-red-rgb), 0.3);
}

.cta-button.merch-button:hover {
    background-color: #d32f2f; 
    border-color: #d32f2f;
    color: #ffffff; 
    box-shadow: 0 10px 30px rgba(var(--primary-red-rgb), 0.4);
    transform: translateY(-6px) scale(1.03); 
}
.cta-button.merch-button:hover span i {
    transform: scale(1.15) rotate(-10deg); 
}


@media (max-width: 900px) {
    .main-heading { margin-bottom: clamp(40px, 6vh, 60px); }
    .cta-buttons { flex-direction: column; gap: 18px; align-items: center; }
    .cta-button { width: 75%; max-width: 300px; padding: 11px 22px; font-size: 0.8rem; }
}
@media (max-width: 600px) {
    .main-heading { 
        margin-bottom: clamp(30px, 5vh, 50px);
        font-size: clamp(2rem, 7vw, 4rem); 
        letter-spacing: -0.015em; 
    }
}


#content-sections { width: 100%; padding: 0 20px 40px 20px; position: relative; z-index: 1; }
.content-section {
    max-width: 900px; margin: 0 auto 60px auto; padding: 50px 30px;
    color: var(--text-color); position: relative; z-index: 2;
}
.content-section h2 {
    font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; font-style: italic;
    color: var(--text-color); text-transform: uppercase; text-align: center;
    margin-bottom: 45px; letter-spacing: -0.01em; position: relative;
}
.content-section h2::after {
    content: ''; display: block; width: 80px; height: 3px;
    background-color: var(--primary-red); margin: 15px auto 0;
}

/* In your style.css */

/* ... (Keep ALL existing CSS from :root down to the end of the previous section's styles) ... */

/* --- About Me Section Specifics --- */
#about-me {
    text-align: left; /* Align text to the left for better readability of paragraphs */
    max-width: 800px; /* Slightly narrower for optimal paragraph width */
    margin-left: auto;
    margin-right: auto;
}

#about-me h2 {
    text-align: center; /* Keep section heading centered */
    margin-bottom: 50px; /* Space below heading */
}

.about-me-content p {
    font-size: 1.05rem; /* Or 1rem, adjust for comfort */
    line-height: 1.8;
    color: var(--text-color);
    opacity: 0.9; /* Slightly softer than pure black/white for readability */
    margin-bottom: 25px; /* Space between paragraphs */
    text-align: justify; /* Justify text for a block-like, clean look */
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto; /* Enable hyphenation for better justified text flow */
}

.about-me-content p:last-child {
    margin-bottom: 0;
}

.about-me-content strong {
    font-weight: 600; /* Or 700 if you want it bolder */
    color: var(--primary-red); /* Make a key phrase stand out */
}

.about-me-content .highlight-skill {
    font-weight: 500; /* Slightly bolder than normal text */
    color: var(--primary-red); /* Use primary color for skill highlights */
    /* background-color: rgba(var(--primary-red-rgb), 0.1); */ /* Optional subtle background */
    /* padding: 0.1em 0.3em; */
    /* border-radius: 4px; */
}

@media (max-width: 768px) {
    #about-me {
        padding-left: 20px;
        padding-right: 20px;
    }
    .about-me-content p {
        font-size: 0.95rem;
        line-height: 1.7;
        text-align: left; /* Switch from justify on smaller screens if it looks gappy */
        hyphens: none;
    }
}


/* ... (Rest of your CSS for other sections: #experience, #skills, etc. remains unchanged) ... */

.experience-accordion { width: 100%; max-width: 850px; margin: 0 auto; }
.job-entry-card {
    position: relative; margin-bottom: 35px; border-radius: 18px;
    background-color: transparent; overflow: visible;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s ease;
    z-index: 3;
}
.job-entry-card::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
    background: rgba(var(--card-base-bg-light-rgb), 0.7);
    backdrop-filter: blur(12px) saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
    border: 1px solid var(--card-border-light);
    box-shadow: var(--card-shadow-light);
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease, backdrop-filter 0.35s ease;
}
body.dark-mode .job-entry-card::before {
    background: rgba(var(--card-base-bg-dark-rgb), 0.75);
    border-color: var(--card-border-dark);
    box-shadow: var(--card-shadow-dark);
}
.job-entry-card:not(:has(.job-entry-header[aria-expanded="true"])):hover {
    transform: translateY(-7px) scale(1.01);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1); z-index: 4;
}
body.dark-mode .job-entry-card:not(:has(.job-entry-header[aria-expanded="true"])):hover {
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.22);
}
.job-entry-card:not(:has(.job-entry-header[aria-expanded="true"])):hover::before {
    border-color: rgba(var(--primary-red-rgb), 0.5);
    box-shadow: 0 0 20px -5px rgba(var(--primary-red-rgb), 0.2), var(--card-shadow-light);
}
body.dark-mode .job-entry-card:not(:has(.job-entry-header[aria-expanded="true"])):hover::before {
    border-color: rgba(var(--primary-red-rgb), 0.6);
    box-shadow: 0 0 25px -5px rgba(var(--primary-red-rgb), 0.3), var(--card-shadow-dark);
}
.job-entry-card:has(.job-entry-header[aria-expanded="true"]) { z-index: 5; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); }
body.dark-mode .job-entry-card:has(.job-entry-header[aria-expanded="true"]) { box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2); }
.job-entry-card:has(.job-entry-header[aria-expanded="true"])::before {
    background: rgba(var(--card-base-bg-light-rgb), 0.9);
    backdrop-filter: blur(8px) saturate(110%);
    border-color: rgba(var(--text-color-rgb), 0.12);
}
body.dark-mode .job-entry-card:has(.job-entry-header[aria-expanded="true"])::before {
    background: rgba(var(--card-base-bg-dark-rgb), 0.92);
    border-color: rgba(var(--text-color-rgb), 0.18);
}

.job-entry-header {
    display: grid;
    grid-template-columns: auto 1fr min-content min-content; 
    grid-template-rows: auto auto; 
    align-items: center; 
    padding: 20px 25px;
    column-gap: 12px; 
    row-gap: 4px;  
    width: 100%;
    background-color: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    color: var(--text-color);
    outline: none;
    position: relative;
}

.job-logo {
    grid-column: 1;
    grid-row: 1 / span 2; 
    align-self: flex-start; 
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 10px;
    background-color: rgba(var(--bg-color-rgb), 0.3);
    padding: 6px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
    margin-top: 3px; 
}
body.dark-mode .job-logo {
    background-color: rgba(var(--bg-color-rgb), 0.2);
}

.job-header-text {
    display: contents;
}

.job-header-text .company-name { 
    grid-column: 2; 
    grid-row: 1;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.4;
    align-self: flex-end; 
}

.job-header-text .job-title { 
    grid-column: 2; 
    grid-row: 2;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    opacity: 0.85;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    align-self: flex-start; 
}

.job-header-dates { 
    grid-column: 3; 
    grid-row: 1 / span 2; 
    align-self: center; 
    font-size: 0.7rem; 
    font-weight: 600;
    color: var(--text-color);
    opacity: 1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    background-color: rgba(var(--text-color-rgb), 0.06);
    padding: 4px 10px; 
    border-radius: 16px; 
    line-height: 1.4; 
    transition: background-color 0.3s ease, color 0.3s ease;
}
body.dark-mode .job-header-dates {
    background-color: rgba(var(--text-color-rgb), 0.12);
}
.job-entry-header:hover .job-header-dates {
    background-color: rgba(var(--primary-red-rgb), 0.1);
    color: var(--primary-red);
}
body.dark-mode .job-entry-header:hover .job-header-dates {
    background-color: rgba(var(--primary-red-rgb), 0.2);
}


.expand-icon {
    grid-column: 4; 
    grid-row: 1 / span 2; 
    align-self: center; 
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.7;
    transition: transform 0.3s ease, opacity 0.3s ease, color 0.3s ease;
    padding: 8px; 
}
.job-entry-header:hover .expand-icon {
    opacity: 1;
    color: var(--primary-red);
}
.job-entry-header[aria-expanded="true"] .expand-icon {
    transform: rotate(180deg);
    opacity: 1;
    color: var(--primary-red);
}


.job-entry-content {
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s ease-out, padding-top 0.4s ease-out, padding-bottom 0.4s ease-out;
    background-color: transparent;
}

.job-content-tabs {
    display: flex;
    border-bottom: 1px solid rgba(var(--text-color-rgb), 0.15);
    margin: 0 25px;
    padding-top: 5px;
}
body.dark-mode .job-content-tabs { border-bottom-color: rgba(var(--text-color-rgb), 0.2); }
.job-tab-button {
    background-color: transparent; border: none;
    padding: 10px 15px; font-size: 0.9rem; font-weight: 600;
    color: var(--text-color); opacity: 0.7; cursor: pointer;
    border-bottom: 3px solid transparent; margin-bottom: -1px;
    transition: opacity 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.job-tab-button:hover { opacity: 1; color: var(--primary-red); }
.job-tab-button.active { opacity: 1; color: var(--primary-red); border-bottom-color: var(--primary-red); }

.job-content-panels { padding: 20px 25px 25px 25px; }
.job-tab-panel { display: none; }
.job-tab-panel.active { display: block; animation: fadeInTab 0.5s ease; }
@keyframes fadeInTab { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.job-tab-panel p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 15px; color: var(--text-color); opacity: 0.9; }
.job-tab-panel p:last-child { margin-bottom: 0; }
.job-tab-panel ul { list-style-type: none; padding-left: 0; margin: 0; }
.job-tab-panel li {
    font-size: 0.9rem; line-height: 1.75; margin-bottom: 12px;
    color: var(--text-color); opacity: 0.9; padding-left: 22px; position: relative;
}
.job-tab-panel li::before {
    content: '›'; color: var(--primary-red); font-weight: bold; font-size: 1.1em;
    position: absolute; left: 5px; top: 0px;
}
.job-tab-panel li:last-child { margin-bottom: 0; }

.achievements-sub-heading {
    font-size: 1.1rem; font-weight: 700; color: var(--text-color);
    margin-bottom: 20px; text-align: left; opacity: 0.9;
}
.achievements-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px; margin-bottom: 25px;
}
.achievement-card {
    background-color: rgba(var(--text-color-rgb), 0.04);
    border: 1px solid rgba(var(--text-color-rgb), 0.08);
    border-radius: 10px; padding: 15px; text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
body.dark-mode .achievement-card {
    background-color: rgba(var(--text-color-rgb), 0.06);
    border-color: rgba(var(--text-color-rgb), 0.1);
}
.achievement-card:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
body.dark-mode .achievement-card:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.achievement-number {
    font-size: 2rem; font-weight: 700; color: var(--primary-red);
    margin-bottom: 5px; line-height: 1.1;
}
.achievement-text { font-size: 0.8rem; color: var(--text-color); opacity: 0.8; line-height: 1.4; }
.achievements-bullets { margin-top: 10px; }
.achievements-bullets li::before { top: 1px; }

@media (max-width: 768px) {
    .experience-accordion { max-width: 100%; }
    .job-entry-card { margin-bottom: 25px; border-radius: 16px; }
    .job-entry-header { padding: 18px 20px; column-gap: 10px; }
    .job-logo { width: 40px; height: 40px; border-radius: 8px; padding: 5px; }
    .job-header-text .company-name { font-size: 1.05rem; } 
    .job-header-text .job-title { font-size: 0.9rem; } 
    .job-header-dates { font-size: 0.65rem; padding: 3px 8px; } 
    .expand-icon { font-size: 1rem; }
    .job-content-tabs { margin: 0 20px; }
    .job-content-panels { padding: 15px 20px 20px 20px; }
    .job-tab-panel li, .job-tab-panel p { font-size: 0.85rem; }
    .achievements-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
    .achievement-number { font-size: 1.8rem; }
    .achievement-text { font-size: 0.75rem; }
}

@media (max-width: 600px) { 
    .job-entry-header {
        grid-template-columns: auto 1fr auto; 
        grid-template-rows: auto auto auto; 
        column-gap: 12px; 
        row-gap: 3px; 
    }
    .job-logo { grid-row: 1 / span 3; }

    .job-header-text .company-name { 
        grid-column: 2; 
        grid-row: 1;
        align-self: flex-end; 
    }
    .job-header-text .job-title { 
        grid-column: 2;
        grid-row: 2;
        white-space: normal; 
        align-self: flex-start; 
    }
    .job-header-dates { 
        grid-column: 2; 
        grid-row: 3; 
        align-self: flex-start; 
        justify-self: flex-start; 
        margin-top: 4px; 
    }
    .expand-icon { grid-row: 1 / span 3; grid-column: 3; }
}


@media (max-width: 400px) {
    .job-entry-header { padding: 15px 20px; }
    .job-logo { width: 36px; height: 36px; }
    .job-header-text .company-name { font-size: 1rem; } 
    .job-header-text .job-title { font-size: 0.85rem; } 
    .job-header-dates { font-size: 0.7rem; padding: 3px 8px; } 
    .job-content-tabs { margin: 0 15px; flex-wrap: wrap; }
    .job-tab-button { padding: 8px 10px; font-size: 0.85rem; }
    .job-content-panels { padding: 15px; }
    .job-tab-panel li, .job-tab-panel p { font-size: 0.8rem; padding-left: 18px; }
    .job-tab-panel li::before { left: 2px; }
    .achievements-grid { grid-template-columns: 1fr 1fr; }
    .achievement-number { font-size: 1.6rem; }
}

/* --- Skills Section - "Nebula Skill Orbs" --- */
#skills.skills-nebula-section { /* Added class for specificity */
    padding-top: 40px; /* Less top padding if h2 has large margin */
    padding-bottom: 100px;
    position: relative; /* For potential future absolute positioned elements */
}

#skills h2 {
    margin-bottom: 80px; /* More space for the grand title */
    position: relative;
    z-index: 2; /* Above any background effects for the section */
}

.skills-nebula-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: 50px 40px; /* More vertical gap */
    position: relative;
    z-index: 1;
}

.skill-orb-category {
    position: relative;
    padding: 30px;
    border-radius: 20px; /* Softer edges */
    background-color: var(--skill-orb-bg-light);
    box-shadow: var(--skill-orb-shadow-light);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid var(--skill-orb-border-light);
    transform-style: preserve-3d; /* For JS tilt */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the core and node container */
    text-align: center;
    min-height: 320px; /* Give orbs some minimum height */
}
body.dark-mode .skill-orb-category {
    background-color: var(--skill-orb-bg-dark);
    border-color: var(--skill-orb-border-dark);
    box-shadow: var(--skill-orb-shadow-dark);
}

.skill-orb-category:hover {
    transform: translateY(-10px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) scale(1.02);
    box-shadow: var(--skill-orb-hover-shadow-dark);
}

.skill-orb-core {
    margin-bottom: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default; /* Or pointer if it triggers an animation */
}
.skill-orb-core i {
    font-size: 2.8rem;
    color: var(--primary-red);
    margin-bottom: 12px;
    text-shadow: 0 0 15px rgba(var(--primary-red-rgb), 0.6), 0 0 25px rgba(var(--primary-red-rgb), 0.4);
    transition: transform 0.3s ease;
}
.skill-orb-category:hover .skill-orb-core i {
    transform: scale(1.1);
}
.skill-orb-core h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.skill-nodes-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px 15px; /* row-gap column-gap */
    width: 100%;
}
.skill-nodes-container.is-text-heavy {
    gap: 10px; /* Tighter gap if mostly text nodes */
}

.skill-logo-node, .skill-text-node {
    transition: transform 0.25s ease-out, box-shadow 0.25s ease-out, background-color 0.25s ease-out;
    position: relative; /* For tooltips */
}

.skill-logo-node {
    background-color: var(--skill-node-bg-light);
    border: 1px solid var(--skill-node-border-light);
    border-radius: 10px;
    padding: 8px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.skill-logo-node img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(10%) opacity(0.9);
    transition: filter 0.2s ease;
}
body.dark-mode .skill-logo-node {
    background-color: var(--skill-node-bg-dark);
    border-color: var(--skill-node-border-dark);
}
body.dark-mode .skill-logo-node img {
    filter: grayscale(5%) opacity(0.95) brightness(1.05);
}

.skill-logo-node:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 5px 12px rgba(var(--primary-red-rgb),0.15);
    background-color: var(--bg-color);
}
body.dark-mode .skill-logo-node:hover {
    background-color: var(--card-base-bg-dark); /* Or a lighter shade of the orb bg */
}
.skill-logo-node:hover img {
    filter: grayscale(0%) opacity(1);
}

.skill-text-node {
    background-color: var(--skill-text-node-bg-light);
    color: var(--text-color);
    font-size: 0.8rem;
    padding: 7px 15px;
    border-radius: 25px;
    font-weight: 500;
    border: 1px solid var(--skill-text-node-border-light);
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}
body.dark-mode .skill-text-node {
    background-color: var(--skill-text-node-bg-dark);
    border-color: var(--skill-text-node-border-dark);
}
.skill-text-node:hover {
    transform: translateY(-3px) scale(1.03);
    background-color: var(--primary-red);
    color: #fff;
    border-color: var(--primary-red);
    box-shadow: 0 4px 10px rgba(var(--primary-red-rgb), 0.3);
}

/* Custom Tooltip for logos (optional) */
.skill-logo-node::after {
    content: attr(data-skill-name);
    position: absolute;
    bottom: 110%; /* Position above the logo */
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--button-bg);
    color: var(--button-text);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 10;
}
.skill-logo-node:hover::after {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 992px) {
    .skills-nebula-grid {
        grid-template-columns: 1fr; /* Stack orbs on medium screens */
    }
}
@media (max-width: 480px) {
    .skill-orb-category {
        padding: 25px;
    }
    .skill-orb-core i {
        font-size: 2.4rem;
    }
    .skill-orb-core h3 {
        font-size: 1.3rem;
    }
    .skill-logo-node {
        width: 50px;
        height: 50px;
    }
    .skill-text-node {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}


/* --- Education Section Specifics --- */
#education { padding-bottom: 80px; }
.education-timeline-container { display: flex; flex-direction: column; gap: 40px; max-width: 800px; margin: 0 auto; }
.education-entry-v2 { display: flex; gap: 25px; position: relative; }
.edu-logo-column { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; width: 80px; }
.edu-logo {
    width: 60px; height: 60px; object-fit: contain; border-radius: 12px; padding: 8px;
    background-color: var(--bg-color); box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}
body.dark-mode .edu-logo { background-color: var(--card-base-bg-dark); }
.bvrit-logo { background-color: #fff; padding: 5px; }
.timeline-connector {
    width: 2px; flex-grow: 1; background: linear-gradient(to bottom, var(--primary-red), transparent);
    margin-top: 15px; min-height: 50px;
}
.education-entry-v2:last-child .timeline-connector { display: none; }
.edu-content-column { flex-grow: 1; padding-top: 5px; }
.edu-card {
    background-color: var(--card-base-bg-light); border-radius: 16px; padding: 25px 30px;
    position: relative; overflow: hidden; box-shadow: 0 8px 30px -10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
body.dark-mode .edu-card { background-color: var(--card-base-bg-dark); box-shadow: 0 8px 30px -10px rgba(0,0,0,0.25); }
.education-entry-v2:hover .edu-card { transform: translateY(-5px) scale(1.005); box-shadow: 0 12px 40px -12px rgba(0,0,0,0.15); }
body.dark-mode .education-entry-v2:hover .edu-card { box-shadow: 0 12px 40px -12px rgba(0,0,0,0.35); }
.edu-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: inherit; padding: 2px;
    background: linear-gradient(135deg, var(--primary-red), rgba(var(--primary-red-rgb), 0.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity 0.4s ease; z-index: 0;
}
.education-entry-v2:hover .edu-card::before { opacity: 1; }
.edu-card-header h3 { font-size: 1.5rem; font-weight: 700; color: var(--text-color); margin-bottom: 3px; letter-spacing: -0.01em; }
.edu-card-header h4 { font-size: 1.05rem; font-weight: 500; color: var(--text-color); opacity: 0.8; margin-bottom: 15px; font-style: normal; }
.edu-dates-gpa {
    font-size: 0.9rem; color: var(--text-color); opacity: 0.75; margin-bottom: 20px;
    display: flex; align-items: center; flex-wrap: wrap; gap: 5px 15px;
}
.edu-dates-gpa i { color: var(--primary-red); margin-right: 5px; font-size: 0.95em; }
.edu-coursework-section { margin-top: 15px; }
.edu-coursework-heading { font-size: 0.9rem; font-weight: 600; color: var(--text-color); margin-bottom: 10px; opacity: 0.9; }
.coursework-pills-container { display: flex; flex-wrap: wrap; gap: 8px; }
.coursework-pill {
    background-color: rgba(var(--text-color-rgb), 0.05); color: var(--text-color); opacity: 0.9;
    font-size: 0.8rem; padding: 6px 12px; border-radius: 20px; font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    cursor: default; border: 1px solid transparent;
}
body.dark-mode .coursework-pill { background-color: rgba(var(--text-color-rgb), 0.08); }
.coursework-pill:hover { background-color: var(--primary-red); color: #fff; transform: translateY(-2px); border-color: var(--primary-red); opacity: 1; }
@media (max-width: 768px) {
    .education-timeline-container { gap: 30px; } .education-entry-v2 { gap: 15px; }
    .edu-logo-column { width: 60px; } .edu-logo { width: 48px; height: 48px; padding: 6px; }
    .edu-card { padding: 20px 25px; } .edu-card-header h3 { font-size: 1.3rem; }
    .edu-card-header h4 { font-size: 1rem; margin-bottom: 12px; }
    .edu-dates-gpa { font-size: 0.85rem; margin-bottom: 15px; }
    .coursework-pill { font-size: 0.75rem; padding: 5px 10px; }
}
@media (max-width: 480px) {
    .education-entry-v2 { flex-direction: column; align-items: center; gap: 15px; }
    .edu-logo-column { width: auto; } .timeline-connector { display: none !important; }
    .edu-content-column { width: 100%; padding-top: 0; } .edu-card { padding: 15px 20px; }
    .edu-card-header h3 { font-size: 1.2rem; } .edu-card-header h4 { font-size: 0.9rem; }
}

/* --- Certifications Section --- */
#certifications { padding-bottom: 80px; } #certifications h2 { margin-bottom: 70px; }
.certification-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 40px; perspective: 1500px; }
.certification-card {
    position: relative; padding: 30px; border-radius: 20px;
    background: rgba(var(--card-base-bg-light-rgb), 0.6);
    backdrop-filter: blur(12px) saturate(150%); -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid rgba(var(--text-color-rgb), 0.1); box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1), background 0.4s ease;
    display: flex; flex-direction: column; align-items: center; text-align: center; transform-style: preserve-3d;
}
body.dark-mode .certification-card {
    background: rgba(var(--card-base-bg-dark-rgb), 0.65);
    border: 1px solid rgba(var(--text-color-rgb), 0.15); box-shadow: 0 10px 35px rgba(0,0,0,0.25);
}
.card-shine-effect {
    position: absolute; top: 0; left: -150%; width: 100%; height: 100%;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.15) 48%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.15) 52%, transparent 70%);
    transform: skewX(-25deg); transition: left 0.8s ease-in-out; z-index: 1; pointer-events: none;
}
body.dark-mode .card-shine-effect { background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.06) 48%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.06) 52%, transparent 70%); }
.certification-card:hover .card-shine-effect { left: 50%; }
.card-border-glow {
    content: ''; position: absolute; inset: -2px; border-radius: inherit;
    background: conic-gradient(from var(--glow-angle, 0deg), transparent 0%, var(--primary-red) 30%, transparent 60%, var(--primary-red) 90%, transparent 100%);
    filter: blur(15px) opacity(0); transition: opacity 0.4s ease, filter 0.4s ease;
    z-index: -1; animation: rotate-glow 8s linear infinite paused;
}
@keyframes rotate-glow { 0% { --glow-angle: 0deg; } 100% { --glow-angle: 360deg; } }
.certification-card:hover .card-border-glow { opacity: 0.6; filter: blur(10px) opacity(0.6); animation-play-state: running; }
body.dark-mode .certification-card:hover .card-border-glow { opacity: 0.8; filter: blur(12px) opacity(0.8); }
.cert-logo-container {
    width: 80px; height: 80px; border-radius: 16px; background-color: rgba(var(--bg-color-rgb), 0.7);
    padding: 10px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 25px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); z-index: 2; position: relative;
}
body.dark-mode .cert-logo-container { background-color: rgba(var(--bg-color-rgb), 0.3); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.cert-logo-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cert-content-area { z-index: 2; position: relative; margin-bottom: 20px; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }
.cert-title { font-size: 1.4rem; font-weight: 700; color: var(--text-color); margin-bottom: 8px; line-height: 1.3; }
.cert-issuer { font-size: 1rem; font-weight: 500; color: var(--text-color); opacity: 0.85; margin-bottom: 15px; }
.cert-meta { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-color); opacity: 0.7; }
.cert-meta span { display: inline-flex; align-items: center; }
.cert-meta i { margin-right: 6px; color: var(--primary-red); font-size: 0.9em; }
.cert-verify-badge {
    display: inline-flex; align-items: center; gap: 6px; background-color: var(--primary-red); color: #fff;
    font-size: 0.75rem; font-weight: 600; text-decoration: none; padding: 6px 12px; border-radius: 20px;
    margin-top: auto; z-index: 2; position: relative;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.cert-verify-badge:hover { background-color: #c42d29; transform: translateY(-2px); }
.cert-verify-badge i { font-size: 0.9em; }
.certification-card:hover {
    transform: translateY(-10px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) scale(1.03);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
body.dark-mode .certification-card:hover { box-shadow: 0 20px 60px rgba(0,0,0,0.35); }
@media (max-width: 900px) { .certification-grid { grid-template-columns: 1fr; gap: 30px; } }
@media (max-width: 480px) {
    .certification-card { padding: 25px; } .cert-logo-container { width: 70px; height: 70px; margin-bottom: 20px; }
    .cert-title { font-size: 1.25rem; } .cert-issuer { font-size: 0.9rem; } .cert-meta { font-size: 0.75rem; }
    .cert-verify-badge { padding: 5px 10px; font-size: 0.7rem; }
}

/* --- Contact Section Specifics --- */
#contact { text-align: center; }
.contact-details-wrapper { display: flex; flex-direction: column; align-items: center; gap: 25px; margin-top: 20px; }
.contact-item { display: flex; align-items: center; font-size: 1.1rem; }
.contact-icon { font-size: 1.3rem; color: var(--primary-red); margin-right: 12px; width: 25px; text-align: center; }
.contact-link, .contact-text { color: var(--text-color); text-decoration: none; opacity: 0.9; font-weight: 500; }
.contact-link:hover { text-decoration: underline; color: var(--primary-red); }
@media (min-width: 768px) { .contact-item { font-size: 1.15rem; } }
@media (max-width: 600px) {
    .contact-item { font-size: 1rem; flex-direction: column; text-align: center; }
    .contact-icon { margin-right: 0; margin-bottom: 8px; }
}

/* --- Header Email Button with Dropdown --- */
.header-email-button-container { position: relative; display: inline-block; }
.header-email-main-button {
    background-color: transparent; color: var(--text-color); border: none; padding: 8px 12px;
    font-family: inherit; font-size: 0.9rem; font-weight: 500; cursor: default;
    display: inline-flex; align-items: center; transition: color 0.3s ease;
}
.header-email-main-button:hover { color: var(--primary-red); }
.header-email-main-button i { margin-right: 6px; font-size: 1.1rem; }
.email-options-dropdown {
    display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    background-color: var(--button-bg); border: 1px solid var(--dot-color); border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15); z-index: 100; padding: 5px 0; min-width: 160px; margin-top: 5px;
}
.header-email-button-container:hover .email-options-dropdown,
.header-email-main-button[aria-expanded="true"] + .email-options-dropdown,
.email-options-dropdown:hover { display: block; }
.email-option-button {
    display: flex; align-items: center; width: 100%; padding: 10px 15px; background-color: transparent;
    border: none; color: var(--button-text); text-align: left; font-family: inherit;
    font-size: 0.85rem; cursor: pointer; text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.email-option-button i { margin-right: 8px; width: 16px; text-align: center; }
.email-option-button:hover { background-color: var(--hover-button-bg); color: #fff; }
body.dark-mode .email-options-dropdown { border-color: var(--dot-color); }
html { scroll-behavior: smooth; }

/* --- Improved Header Action Links --- */
.header-action-link {
    background-color: transparent;
    border: 1px solid transparent;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600 !important; /* Use important to ensure override */
    font-size: 0.9rem !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease-out;
}

.header-action-link i {
    font-size: 1.2em !important; /* Makes icon slightly larger than text */
    transition: transform 0.25s ease-out;
}

.header-action-link:hover {
    background-color: var(--cta-secondary-bg);
    border-color: var(--cta-secondary-border);
    color: var(--primary-red) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

body.dark-mode .header-action-link:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.header-action-link:hover i {
    transform: scale(1.1);
}

/* Ensure the email button aligns nicely */
.header-right {
    gap: 8px !important;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .header-action-link span {
        display: none; /* Hides the text on smaller screens */
    }
    .header-action-link {
        padding: 10px; /* Makes the icon-only button a nice square */
        border-radius: 50%;
    }
    .header-email-main-button {
        display: none; /* Hides the full email on mobile for space */
    }
}