/* === Root Theme Variables === */
:root {
    --bg-dark: #0d1117;
    --bg-light: #f6f8fa;
    --card-dark: #161b22;
    --card-light: #ffffff;
    --border-dark: #30363d;
    --border-light: #d0d7de;
    --text-dark: #e6edf3;
    --text-light: #24292f;
    --text-muted-dark: #7d8590;
    --text-muted-light: #57606a;
    --primary: #58a6ff; /* Blue */
    --green: #2ea043; /* Success */
    --red: #d73a49; /* Error/Danger */
    --blue: #0969da; /* General Blue */
    --orange: #f57c00;
    --purple: #8250df;
    --shadow-dark: rgba(200, 200, 255, 0.1);
    --shadow-light: rgba(27, 31, 35, 0.1);
    --button-shadow-dark: rgba(0, 0, 0, 0.4); /* Stronger shadow for buttons */
    --button-shadow-light: rgba(0, 0, 0, 0.15);
}

/* === Base Styles === */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    font-size: 16px; /* Base font size */
}
body.dark-mode { 
    background-color: var(--bg-dark); 
    color: var(--text-dark); 
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 20px 20px;
}
body.light-mode { background-color: var(--bg-light); color: var(--text-light); }
.container { 
    max-width: none;
    margin: 0; 
    padding: 0;
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    width: 100%; 
    box-sizing: border-box; 
}

/* === Top Bar & Controls === */
.top-bar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: nowrap; 
    gap: 20px; 
    margin: 0 0 25px 0;
    padding: 20px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    box-sizing: border-box;
    background-color: var(--bg-dark);
    border-bottom: 1px solid var(--border-dark);
}

body.light-mode .top-bar {
    background-color: var(--bg-light);
    border-bottom-color: var(--border-light);
}
.logo-title { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    flex-shrink: 0;
}
.logo-title h1 { 
    font-size: 1.6rem; 
    margin: 0; 
    white-space: nowrap; 
}

.header-controls { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    flex-shrink: 0;
}

/* Center navigation for non-index pages */
.center-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    z-index: 1;
}

.center-nav .nav-button {
    padding: 8px 12px;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* General Button Styles */
.btn-main {
    padding: 10px 18px; 
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px; 
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
    border: none; 
    box-shadow: 0 4px 8px var(--button-shadow-dark); 
    color: white; 
    text-decoration: none; /* For nav links */
    display: inline-flex; /* For better alignment with text-decoration:none */
    align-items: center;
    justify-content: center;
}
body.light-mode .btn-main {
    box-shadow: 0 4px 8px var(--button-shadow-light);
}
.btn-main:hover {
    transform: translateY(-2px); 
    filter: brightness(1.1);
}

/* Specific button colors */
.btn-green { background-color: var(--green); }
.btn-blue { background-color: var(--blue); }
.btn-red { background-color: var(--red); }
.btn-orange { background-color: var(--orange); }

/* Header specific button style (for theme toggle and info) */
.btn-header {
    padding: 8px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    background-color: transparent; 
    color: var(--text-muted-dark); 
    border: 1px solid var(--border-dark); 
}
body.light-mode .btn-header {
    color: var(--text-muted-light);
    border-color: var(--border-light);
}
.btn-header:hover {
    background-color: var(--primary); 
    color: white;
    border-color: var(--primary);
}

/* Disabled button state */
.btn-main:disabled, .btn-header:disabled {
    background-color: var(--card-dark) !important;
    color: var(--text-muted-dark) !important;
    cursor: not-allowed;
    border-color: var(--border-dark) !important;
    transform: none !important; 
    filter: brightness(0.7) !important;
    box-shadow: none !important; 
}
body.light-mode .btn-main:disabled, body.light-mode .btn-header:disabled {
    background-color: #f6f8fa !important;
    color: var(--text-muted-light) !important;
    border-color: var(--border-light) !important;
}

/* === Theme Toggle Switch === */
.toggle-switch { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.switch { position: relative; display: inline-block; width: 45px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--bg-dark); border: 1px solid var(--border-dark); transition: .4s; border-radius: 24px; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px; background-color: var(--text-muted-dark); transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--primary); border-color: var(--primary); }
input:checked + .slider:before { transform: translateX(20px); background-color: white; }
body.light-mode .slider { background-color: var(--bg-light); border-color: var(--border-light); }
body.light-mode .slider:before { background-color: var(--text-muted-light); }

/* === Main Content Area === */
.main-content-area {
    display: flex;
    flex-direction: column; 
    gap: 15px; 
    flex-grow: 1;
    align-items: center; 
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.card {
    background: var(--card-dark); 
    border: 1px solid var(--border-dark); 
    padding: 20px; 
    border-radius: 12px; 
    width: 100%;
    max-width: 1000px; /* Decreased from 1100px to 1000px */
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow-dark); 
    text-align: center;
}
body.light-mode .card { background: var(--card-light); border: 1px solid var(--border-light); }
body.light-mode .card:hover { box-shadow: 0 10px 20px var(--shadow-light); }

.card h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.8rem; /* Larger headings */
    color: var(--primary); 
}

/* Portfolio Header (no card styling) */
.portfolio-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
}
.profile-pic {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.4);
    transition: all 0.3s ease;
}
.profile-pic:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(88, 166, 255, 0.6);
}
.name {
    font-size: 2.2rem;
    margin: 8px 0 5px;
    color: var(--text-dark);
}
body.light-mode .name {
    color: var(--text-light);
}
.tagline { /* This class is now unused in HTML, but keeping style for reference */
    font-size: 1.2rem;
    color: var(--text-muted-dark);
    margin: 0;
}
body.light-mode .tagline {
    color: var(--text-muted-light);
}

/* Main Navigation */
.main-navigation {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    width: 100%;
    max-width: 1000px; /* Decreased from 1100px to 1000px */
}
.nav-button {
    flex: 0 1 auto; /* Changed from flex: 1 to allow natural sizing */
    min-width: 100px; /* Reduced from 140px */
    max-width: 140px; /* Reduced from 180px */
    padding: 10px 12px; /* Reduced from 12px 15px */
    font-size: 0.95rem; /* Reduced from 1.05rem */
    text-align: center;
}

/* Current page button styling */
.nav-button.current-page {
    background-color: var(--primary) !important;
    color: white !important;
    cursor: default;
    transform: none !important;
    filter: brightness(0.9) !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2) !important;
}

.nav-button.current-page:hover {
    transform: none !important;
    filter: brightness(0.9) !important;
}

/* About Me Section */
.about-me-section {
    text-align: left; /* Align text left within this section */
    line-height: 1.6;
    font-size: 1.05rem;
    color: var(--text-dark);
}
body.light-mode .about-me-section {
    color: var(--text-light);
}
.about-me-section h2 {
    text-align: center; /* Center heading */
    margin-bottom: 25px;
}
.about-me-section p {
    margin-bottom: 15px;
}


/* === Modal Styles === */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.6); animation: fadeIn 0.3s; }
.modal-content { background-color: var(--card-dark); margin: 10% auto; padding: 25px; 
    border: 1px solid var(--border-dark); width: 80%; max-width: 650px; 
    border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
body.light-mode .modal-content { background-color: var(--card-light); border-color: var(--border-light); }
.modal-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-dark); padding-bottom: 15px; 
    margin-bottom: 25px; 
}
body.light-mode .modal-header { border-color: var(--border-light); } 
.modal-header h2 {
    color: var(--primary); 
    margin: 0;
}
.close-button { font-size: 32px; 
    font-weight: bold; cursor: pointer; transition: color 0.2s; }
.close-button:hover { color: var(--red); }
.modal-body { display: flex; flex-direction: column; gap: 15px; 
    font-size: 1rem;
    line-height: 1.5;
}
.modal-body p { margin: 0; }
.modal-body ul { margin: 10px 0 0 20px; padding: 0; }
.modal-body li { margin-bottom: 5px; }


/* === List Styles === */
.certification-list, .education-list, .achievement-list, .social-handle-list, .project-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.certification-row, .education-row, .achievement-row, .social-handle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-dark);
    border: 1px solid var(--border-dark);
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

body.light-mode .certification-row,
body.light-mode .education-row,
body.light-mode .achievement-row,
body.light-mode .social-handle-row {
    background: var(--card-light);
    border-color: var(--border-light);
}

.certification-row:hover,
.education-row:hover,
.achievement-row:hover,
.social-handle-row:hover {
    transform: translateY(-2px);
}

.cert-info, .edu-info, .achievement-info, .handle-info {
    flex-grow: 1;
    text-align: left;
}

.cert-info h3, .edu-info h3, .achievement-info h3, .handle-info h3 {
    color: var(--primary);
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.cert-info .issuer, .edu-info .institution, .handle-info .platform {
    color: var(--text-muted-dark);
    font-style: italic;
    margin: 0 0 8px 0;
    font-size: 1rem;
}

body.light-mode .cert-info .issuer,
body.light-mode .edu-info .institution,
body.light-mode .handle-info .platform {
    color: var(--text-muted-light);
}

.edu-info .details, .achievement-info .description {
    color: var(--text-muted-dark);
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

body.light-mode .edu-info .details,
body.light-mode .achievement-info .description {
    color: var(--text-muted-light);
}

.duration-badge, .date-badge {
    background: var(--primary);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Project Cards */
.project-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-dark);
    border: 1px solid var(--border-dark);
    padding: 25px;
    border-radius: 12px;
    transition: all 0.3s ease;
    gap: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.light-mode .project-card {
    background: var(--card-light);
    border-color: var(--border-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(88, 166, 255, 0.15);
}

.project-info {
    flex-grow: 1;
    text-align: left;
    max-width: calc(100% - 200px);
}

.project-info h3 {
    color: var(--primary);
    margin: 0 0 12px 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.project-info .description {
    color: var(--text-muted-dark);
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

body.light-mode .project-info .description {
    color: var(--text-muted-light);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0 15px 15px 15px;
    }
    
    .top-bar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .logo-title {
        flex-shrink: 0;
    }
    
    .logo-title h1 {
        font-size: 1.4rem;
    }
    
    .header-controls {
        flex-shrink: 0;
        gap: 10px;
    }
    
    .toggle-switch {
        flex-shrink: 0;
    }
    
    .main-navigation {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }
    
    .nav-button {
        width: 100%;
        max-width: unset;
        padding: 12px 15px;
        font-size: 1rem;
        font-weight: 600;
        box-sizing: border-box;
    }

    /* Hide navigation buttons after the first 3 */
    .nav-button:nth-child(n+4) {
        display: none;
    }

    .nav-button:nth-child(n+4).show {
        display: block;
    }

    .nav-show-more-btn {
        width: 100%;
        margin-top: 10px;
        background-color: var(--card-dark);
        color: var(--text-muted-dark);
        border: 1px solid var(--border-dark);
        padding: 12px 15px;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 1rem;
        font-weight: 600;
        text-align: center;
        box-sizing: border-box;
    }

    body.light-mode .nav-show-more-btn {
        background-color: var(--card-light);
        color: var(--text-muted-light);
        border-color: var(--border-light);
    }

    .nav-show-more-btn:hover {
        background-color: var(--border-dark);
        color: var(--text-dark);
    }

    body.light-mode .nav-show-more-btn:hover {
        background-color: var(--border-light);
        color: var(--text-light);
    }
    
    .card {
        padding: 15px;
        margin-bottom: 15px;
        box-sizing: border-box;
    }
    
    .card h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .portfolio-header {
        padding-bottom: 15px;
    }
    
    .profile-pic {
        width: 120px;
        height: 120px;
    }
    
    .name {
        font-size: 1.8rem;
    }
    
    .about-me-section {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    /* Mobile-specific row layouts */
    .education-row, .certification-row, .project-card, 
    .social-handle-row, .achievement-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 15px;
        box-sizing: border-box;
    }
    
    .edu-info, .cert-info, .project-info, 
    .handle-info, .achievement-info {
        max-width: 100%;
        width: 100%;
    }
    
    .edu-info h3, .cert-info h3, .project-info h3,
    .handle-info h3, .achievement-info h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .project-info .description {
        margin-bottom: 8px;
    }
    
    .achievement-info .description {
        margin-bottom: 8px;
    }
    
    .duration-badge, .date-badge {
        align-self: flex-end;
        font-size: 0.85rem;
        padding: 6px 10px;
    }
    
    .btn-main {
        width: 100%;
        margin: 0;
        align-self: stretch;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 20px;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .modal-body {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px 10px 10px;
    }
    
    .top-bar {
        padding: 12px;
    }
    
    .logo-title h1 {
        font-size: 1.2rem;
    }
    
    .card {
        padding: 12px;
    }
    
    .card h2 {
        font-size: 1.3rem;
    }
    
    .nav-button {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .profile-pic {
        width: 100px;
        height: 100px;
    }
    
    .name {
        font-size: 1.6rem;
    }
}

/* === Certification List Styles === */
.certification-list, .education-list, .achievement-list, .social-handle-list, .project-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.certification-row, .education-row, .achievement-row, .social-handle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-dark);
    border: 1px solid var(--border-dark);
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

body.light-mode .certification-row,
body.light-mode .education-row,
body.light-mode .achievement-row,
body.light-mode .social-handle-row {
    background: var(--card-light);
    border-color: var(--border-light);
}

.certification-row:hover,
.education-row:hover,
.achievement-row:hover,
.social-handle-row:hover {
    transform: translateY(-2px);
}

.cert-info, .edu-info, .achievement-info, .handle-info {
    flex-grow: 1;
    text-align: left;
}

.cert-info h3, .edu-info h3, .achievement-info h3, .handle-info h3 {
    color: var(--primary);
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.cert-info .issuer, .edu-info .institution, .handle-info .platform {
    color: var(--text-muted-dark);
    font-style: italic;
    margin: 0 0 8px 0;
    font-size: 1rem;
}

body.light-mode .cert-info .issuer,
body.light-mode .edu-info .institution,
body.light-mode .handle-info .platform {
    color: var(--text-muted-light);
}

.edu-info .details, .achievement-info .description {
    color: var(--text-muted-dark);
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

body.light-mode .edu-info .details,
body.light-mode .achievement-info .description {
    color: var(--text-muted-light);
}

.duration-badge, .date-badge {
    background: var(--primary);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Project Cards */
.project-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-dark);
    border: 1px solid var(--border-dark);
    padding: 25px;
    border-radius: 12px;
    transition: all 0.3s ease;
    gap: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.light-mode .project-card {
    background: var(--card-light);
    border-color: var(--border-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(88, 166, 255, 0.15);
}

.project-info {
    flex-grow: 1;
    text-align: left;
    max-width: calc(100% - 200px);
}

.project-info h3 {
    color: var(--primary);
    margin: 0 0 12px 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.project-info .description {
    color: var(--text-muted-dark);
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

body.light-mode .project-info .description {
    color: var(--text-muted-light);
}

/* Mobile responsive for project cards */
@media (max-width: 768px) {
    .project-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
    }
    
    .project-info {
        max-width: 100%;
        width: 100%;
    }
    
    .project-info h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .project-info .description {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
}

.status-badge {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.status-badge.ongoing {
    background: var(--orange);
    color: white;
}

/* === Achievement Styles === */
.achievement-item {
    background: var(--card-dark);
    border: 1px solid var(--border-dark);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: left;
}

body.light-mode .achievement-item {
    background: var(--card-light);
    border-color: var(--border-light);
}

.achievement-item h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.achievement-item .date {
    color: var(--text-muted-dark);
    font-weight: bold;
    margin-bottom: 10px;
}

body.light-mode .achievement-item .date {
    color: var(--text-muted-light);
}

/* === Downloads Section Styles === */
.download-categories {
    text-align: left;
}

.download-categories h3 {
    color: var(--primary);
    margin-bottom: 15px;
    margin-top: 25px;
}

.download-categories ul {
    list-style: none;
    padding: 0;
}

.download-categories li {
    margin-bottom: 10px;
}

.download-categories a {
    color: var(--primary);
    text-decoration: none;
    padding: 8px 12px;
    border: 1px solid var(--primary);
    border-radius: 4px;
    display: inline-block;
    transition: all 0.3s ease;
}

.download-categories a:hover {
    background-color: var(--primary);
    color: white;
}

/* === Social Handles List Styles === */
.social-handle-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.social-handle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-dark);
    border: 1px solid var(--border-dark);
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

body.light-mode .social-handle-row {
    background: var(--card-light);
    border-color: var(--border-light);
}

.social-handle-row:hover {
    transform: translateY(-2px);
}

.handle-info {
    flex-grow: 1;
    text-align: left;
}

.handle-info h3 {
    color: var(--primary);
    margin: 0 0 5px 0;
    font-size: 1.2rem;
}

.handle-info .platform {
    color: var(--text-muted-dark);
    font-style: italic;
    margin: 0;
    font-size: 0.9rem;
}

body.light-mode .handle-info .platform {
    color: var(--text-muted-light);
}

/* === Education List Styles === */
.education-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.education-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-dark);
    border: 1px solid var(--border-dark);
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

body.light-mode .education-row {
    background: var(--card-light);
    border-color: var(--border-light);
}

.education-row:hover {
    transform: translateY(-2px);
}

.edu-info {
    flex-grow: 1;
    text-align: left;
}

.edu-info h3 {
    color: var(--primary);
    margin: 0 0 5px 0;
    font-size: 1.2rem;
}

.edu-info .institution {
    color: var(--text-muted-dark);
    font-style: italic;
    margin: 0;
    font-size: 0.9rem;
}

body.light-mode .edu-info .institution {
    color: var(--text-muted-light);
}

.duration-badge {
    background: var(--primary);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* === Achievement List Styles === */
.achievement-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.achievement-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-dark);
    border: 1px solid var(--border-dark);
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

body.light-mode .achievement-row {
    background: var(--card-light);
    border-color: var(--border-light);
}

.achievement-row:hover {
    transform: translateY(-2px);
}

.achievement-info {
    flex-grow: 1;
    text-align: left;
    max-width: calc(100% - 200px);
}

.achievement-info h3 {
    color: var(--primary);
    margin: 0 0 8px 0;
    font-size: 1.2rem;
}

.achievement-info .description {
    color: var(--text-muted-dark);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

body.light-mode .achievement-info .description {
    color: var(--text-muted-light);
}

.date-badge {
    background: var(--primary);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Show More/Less Button Styles */
.show-more-btn {
    width: 100%;
    margin-top: 15px;
    background-color: var(--card-dark);
    color: var(--text-muted-dark);
    border: 1px solid var(--border-dark);
    display: none;
}

body.light-mode .show-more-btn {
    background-color: var(--card-light);
    color: var(--text-muted-light);
    border-color: var(--border-light);
}

.show-more-btn:hover {
    background-color: var(--border-dark);
    color: var(--text-dark);
}

body.light-mode .show-more-btn:hover {
    background-color: var(--border-light);
    color: var(--text-light);
}

/* Hide show more button on desktop */
@media (min-width: 769px) {
    .nav-show-more-btn {
        display: none !important;
    }
}

/* Show button only on mobile */
@media (max-width: 768px) {
    /* Remove show-more-btn styles */
}
html {
    overflow-x: hidden;
}

/* Standardize all info text */
.edu-info .details,
.cert-info .issuer,
.project-info .description,
.handle-info .platform,
.achievement-info .description {
    color: var(--text-muted-dark);
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

body.light-mode .edu-info .details,
body.light-mode .cert-info .issuer,
body.light-mode .project-info .description,
body.light-mode .handle-info .platform,
body.light-mode .achievement-info .description {
    color: var(--text-muted-light);
}

/* Standardize all headings in rows */
.edu-info h3,
.cert-info h3,
.project-info h3,
.handle-info h3,
.achievement-info h3 {
    color: var(--primary);
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Standardize institution/platform text */
.edu-info .institution,
.handle-info .platform {
    color: var(--text-muted-dark);
    font-style: italic;
    margin: 0 0 8px 0;
    font-size: 1rem;
}

body.light-mode .edu-info .institution,
body.light-mode .handle-info .platform {
    color: var(--text-muted-light);
}

/* === Experience List Styles === */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.experience-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: var(--card-dark);
    border: 1px solid var(--border-dark);
    padding: 25px;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.light-mode .experience-row {
    background: var(--card-light);
    border-color: var(--border-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.experience-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(88, 166, 255, 0.15);
}

.exp-info {
    flex-grow: 1;
    text-align: left;
}

.exp-info h3 {
    color: var(--primary);
    margin: 0 0 12px 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.exp-info .organization {
    color: #7db3ff;
    font-style: normal;
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 500;
}

body.light-mode .exp-info .organization {
    color: #4a90e2;
}

.exp-info .details {
    color: var(--text-muted-dark);
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

body.light-mode .exp-info .details {
    color: var(--text-muted-light);
}

.role-item {
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-dark);
    display: grid;
    grid-template-columns: 200px 1fr 150px;
    gap: 20px;
    align-items: start;
}

.role-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

body.light-mode .role-item {
    border-bottom-color: var(--border-light);
}

.role-item h4 {
    color: #7db3ff;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    align-self: center;
}

body.light-mode .role-item h4 {
    color: #4a90e2;
}

.role-details {
    color: var(--text-muted-dark);
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    align-self: start;
}

body.light-mode .role-details {
    color: var(--text-muted-light);
}

.role-duration {
    background: var(--primary);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    text-align: center;
    box-shadow: 0 2px 4px rgba(88, 166, 255, 0.3);
    justify-self: center;
    align-self: start;
    width: 130px;
}

/* For single role experiences, maintain flex layout */
.experience-row:has(.organization) {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.experience-row:has(.organization) .duration-badge {
    width: 130px;
    text-align: center;
    align-self: center;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .experience-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px !important;
        padding: 20px !important;
    }
    
    .exp-info {
        width: 100% !important;
        text-align: left !important;
    }
    
    .exp-info .details {
        margin-bottom: 15px !important;
        text-align: justify !important;
    }
    
    .duration-badge {
        align-self: center !important;
        width: auto !important;
        min-width: 120px !important;
    }
    
    .role-item {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: left;
    }
    
    .role-details {
        margin-bottom: 15px !important;
        text-align: justify !important;
    }
    
    .role-duration {
        justify-self: center;
        width: auto;
        min-width: 120px;
    }
}
