/* Focus indicators for accessibility */
a:focus,
.skill-item:focus,
.certification-item:focus {
    outline: 3px solid #3498db;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.3);
}

/* Optimize text selection and copying */
* {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Ensure all text content is selectable */
body, p, h1, h2, h3, h4, h5, h6, li, span, div {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Performance optimizations */
* {
    /* Optimize font rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* High contrast focus for better visibility */
@media (prefers-contrast: high) {
    a:focus,
    .skill-item:focus,
    .certification-item:focus {
        outline: 3px solid #000;
        outline-offset: 2px;
        background-color: #ffffff;
        color: #000;
        border: 2px solid #000;
    }
}



/* Ensure interactive elements have proper cursor */
.skill-item,
.certification-item {
    cursor: default;
}

/* Keyboard navigation styles */
.skill-item:focus,
.certification-item:focus {
    transform: translateY(-2px);
    transition: all 0.2s ease;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,*::before,*::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .skill-item:hover,.skill-item:focus,.certification-item:hover,.certification-item:focus,.contact a:hover,.contact a:focus {
        transform: none;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Optimize font rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    /* Mobile-first: base font size for small screens */
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.container {
    max-width: 900px;
    /* Mobile-first: minimal margin on small screens */
    margin: 10px;
    background: #ffffff;
    /* Mobile-first: reduced padding on small screens */
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db 0%, #2980b9 50%, #1abc9c 100%);
    z-index: 1;
}

/* Tablet and larger screens */
@media (min-width: 600px) {
    .container {
        margin: 30px auto;
        padding: 40px;
    }
}

/* Desktop screens */
@media (min-width: 768px) {
    .container {
        padding: 50px;
        margin: 40px auto;
    }
}

header {
    text-align: center;
    border-bottom: 3px solid #3498db;
    padding-bottom: 20px;
    margin-bottom: 35px;
    position: relative;
    border-radius: 8px;
    padding: 25px 20px 20px;
}

header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #1abc9c);
    border-radius: 2px;
}

h1 {
    /* Mobile-first: smaller heading on mobile */
    font-size: 2.2em;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Tablet and larger screens */
@media (min-width: 600px) {
    h1 {
        font-size: 2.8em;
        margin-bottom: 12px;
    }
    
    header {
        padding: 30px 25px 25px;
        margin-bottom: 40px;
    }
}

/* Desktop screens */
@media (min-width: 768px) {
    h1 {
        font-size: 3.2em;
        margin-bottom: 15px;
    }
    
    header {
        padding: 35px 30px 30px;
    }
}

.title {
    font-size: 1.2em;
    color: #34495e;
    margin-bottom: 15px;
    line-height: 1.3;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Tablet and larger screens */
@media (min-width: 600px) {
    .title {
        font-size: 1.4em;
        margin-bottom: 18px;
    }
}

.contact {
    color: #34495e;
    font-size: 1em;
    line-height: 1.4;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.contact a {
    color: #3498db;
    text-decoration: none;
    /* Touch-friendly: larger tap targets */
    padding: 12px 20px;
    margin: 0;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Fixed height and width for consistent button sizing */
    height: 44px;
    min-width: 120px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.08) 0%, rgba(26, 188, 156, 0.08) 100%);
    border: 2px solid rgba(52, 152, 219, 0.2);
    font-weight: 600;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.15);
}

.contact a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.contact a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.contact a:hover::before {
    left: 100%;
}

.contact a:hover::after {
    width: 120px;
    height: 120px;
}

.contact a:hover,
.contact a:focus {
    background: linear-gradient(135deg, #3498db 0%, #1abc9c 50%, #2980b9 100%);
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(52, 152, 219, 0.4);
    border-color: #1abc9c;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Active state for touch devices */
.contact a:active {
    background: linear-gradient(135deg, #2980b9 0%, #16a085 50%, #1f5f8b 100%);
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

/* Tablet and larger screens - reduce touch padding */
@media (min-width: 600px) {
    .contact {
        flex-direction: row;
        gap: 8px;
    }

    .contact a {
        padding: 8px 14px;
    }
}

section {
    margin-bottom: 35px;
    position: relative;
    padding: 20px 0;
}

section:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(52, 152, 219, 0.3) 50%, transparent 100%);
}

.skills:not(:last-child)::after {
    display: none;
}

/* Tablet and larger screens */
@media (min-width: 600px) {
    section {
        margin-bottom: 45px;
        padding: 25px 0;
    }
}

h2 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
    margin-bottom: 20px;
    /* Mobile-first: smaller section headings */
    font-size: 1.6em;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.3px;
    position: relative;
    text-transform: uppercase;
    font-size: 1.3em;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #1abc9c, #3498db);
    border-radius: 1px;
}

/* Tablet and larger screens */
@media (min-width: 600px) {
    h2 {
        font-size: 1.8em;
        margin-bottom: 25px;
        padding-bottom: 10px;
    }
}

h3 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.2em;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -0.2px;
}

/* Tablet and larger screens */
@media (min-width: 600px) {
    h3 {
        font-size: 1.3em;
        margin-bottom: 10px;
    }
}

.company {
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 12px;
    font-size: 1em;
    line-height: 1.4;
    font-weight: 500;
}

ul {
    margin-left: 20px;
}

/* Tablet and larger screens */
@media (min-width: 600px) {
    ul {
        margin-left: 24px;
    }
}

li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #34495e;
    position: relative;
}

li::marker {
    color: #3498db;
    font-weight: bold;
}

/* Executive Summary Styles */
.summary {
    border-left: 4px solid #3498db;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 40px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.summary:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-left-color: #1abc9c;
}

.summary p {
    font-size: 1.1em;
    line-height: 1.7;
    color: #2c3e50;
    margin: 0;
    font-weight: 400;
    text-align: justify;
}

@media (min-width: 600px) {
    .summary {
        padding: 30px;
        margin-bottom: 50px;
    }
    
    .summary p {
        font-size: 1.15em;
    }
}

/* Work Philosophy Styles - Same as Projects */
.philosophy {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
}

.philosophy:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-left-color: #1abc9c;
}

@media (min-width: 600px) {
    .philosophy {
        margin-bottom: 50px;
    }
}

/* Technical Expertise Styles - Mobile First */
.skill-category {
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(52, 152, 219, 0.1);
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(52, 152, 219, 0.2);
}

/* Tablet and larger screens */
@media (min-width: 600px) {
    .skill-category {
        margin-bottom: 35px;
        padding: 25px;
    }
}

.skill-category-title {
    color: #2c3e50;
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 15px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 6px;
    line-height: 1.3;
    position: relative;
}

.skill-category-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #1abc9c, #3498db);
    border-radius: 1px;
}

/* Tablet and larger screens */
@media (min-width: 600px) {
    .skill-category-title {
        font-size: 1.2em;
        margin-bottom: 18px;
        padding-bottom: 8px;
    }
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

/* Small mobile screens */
@media (min-width: 400px) {
    .skill-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px;
    }
}

/* Tablet and larger screens */
@media (min-width: 600px) {
    .skill-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        margin-bottom: 15px;
    }
}

.skill-item {
    color: #2980b9;
    text-decoration: none;
    padding: 6px 3px;
    margin: 0;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 36px;
    width: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.08) 0%, rgba(26, 188, 156, 0.08) 100%);
    border: 2px solid rgba(52, 152, 219, 0.2);
    font-weight: 600;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.15);
    text-align: center;
    white-space: nowrap;
    font-size: 0.9em;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.skill-item:hover::before {
    left: 100%;
}

.skill-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
    pointer-events: none;
}

.skill-item:hover::after {
    width: 80px;
    height: 80px;
}

.skill-item:hover,
.skill-item:focus {
    background: linear-gradient(135deg, #3498db 0%, #1abc9c 50%, #2980b9 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(52, 152, 219, 0.4);
    border-color: #2980b9;
}

/* Tablet and larger screens */
@media (min-width: 600px) {
    .skill-item {
        padding: 8px 5px;
        font-size: 0.95em;
        min-height: auto;
    }
}

/* Touch devices - add active state */
.skill-item:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

/* Style links inside skill items to look like buttons */
.skill-item a {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
}

.skill-item a:hover {
    color: inherit;
    text-decoration: none;
}

.skill-item a:focus {
    color: inherit;
    text-decoration: none;
    outline: none;
}

/* AWS Certifications Styles - Mobile First */
.certifications-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 3px solid #3498db;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.03) 0%, rgba(26, 188, 156, 0.03) 100%);
    border-radius: 12px;
    padding: 30px 20px;
    position: relative;
}

.certifications-section::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #1abc9c);
    border-radius: 2px;
}

/* Tablet and larger screens */
@media (min-width: 600px) {
    .certifications-section {
        margin-top: 50px;
        padding: 40px 30px;
    }
}

.certifications-section h3 {
    color: #2c3e50;
    font-size: 1.4em;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.3;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.certifications-section h3::after {
    content: '★';
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    color: #f39c12;
    font-size: 0.8em;
}

/* Tablet and larger screens */
@media (min-width: 600px) {
    .certifications-section h3 {
        font-size: 1.6em;
        margin-bottom: 25px;
    }
}

#certifications-grid {
    display: grid;
    /* Mobile-first: single column */
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 15px;
}

/* Small tablets */
@media (min-width: 500px) {
    #certifications-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
}

/* Larger screens */
@media (min-width: 768px) {
    #certifications-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        margin-top: 20px;
    }
}

.certification-item {
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    border: 3px solid;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    /* Touch-friendly minimum size */
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.certification-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.certification-item:hover::before {
    left: 100%;
}

/* Tablet and larger screens */
@media (min-width: 600px) {
    .certification-item {
        padding: 20px;
        min-height: auto;
    }
}

/* AWS Certification Colors (Blue) */
.certification-item.professional-cert,
.certification-item.associate-cert {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
    border-color: #2980b9;
    color: white;
}

/* Degree Colors (Orange/Red) - Higher specificity */
.certification-item.degree-cert {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%) !important;
    border-color: #d35400 !important;
    color: white !important;
}

.professional-cert::before {
    content: '★';
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 1.3em;
    color: #f39c12;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Tablet and larger screens */
@media (min-width: 600px) {
    .professional-cert::before {
        top: 10px;
        right: 15px;
        font-size: 1.4em;
    }
}

.associate-cert {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-color: #2980b9;
    color: white;
}

.cert-name {
    font-weight: 700;
    font-size: 1em;
    margin-bottom: 8px;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Tablet and larger screens */
@media (min-width: 600px) {
    .cert-name {
        font-size: 1.05em;
        margin-bottom: 10px;
    }
}

.cert-code {
    font-size: 0.85em;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: rgba(255, 255, 255, 0.25);
    padding: 4px 8px;
    border-radius: 15px;
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Tablet and larger screens */
@media (min-width: 600px) {
    .cert-code {
        font-size: 0.9em;
        padding: 5px 10px;
    }
}

.certification-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

/* Touch devices - add active state */
.certification-item:active {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}



/* Professional Experience Styles - Mobile First */
.job {
    margin-bottom: 40px;
    border-left: 4px solid #3498db;
    padding-left: 20px;
    position: relative;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.02) 0%, rgba(26, 188, 156, 0.02) 100%);
    border-radius: 0 8px 8px 0;
    padding: 20px 20px 20px 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.job:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-left-color: #1abc9c;
}

/* Tablet and larger screens */
@media (min-width: 600px) {
    .job {
        margin-bottom: 50px;
        padding: 25px 25px 25px 30px;
    }
}



.job-header {
    margin-bottom: 12px;
}

/* Tablet and larger screens */
@media (min-width: 600px) {
    .job-header {
        margin-bottom: 15px;
    }
}

.job-title {
    color: #2c3e50;
    font-size: 1.3em;
    margin-bottom: 8px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.2px;
    position: relative;
    display: inline-block;
}

.job-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #1abc9c);
    transition: width 0.3s ease;
}

.job:hover .job-title::after {
    width: 100%;
}

/* Tablet and larger screens */
@media (min-width: 600px) {
    .job-title {
        font-size: 1.4em;
        margin-bottom: 10px;
    }
}

.company-info {
    margin-bottom: 8px;
}

/* Tablet and larger screens */
@media (min-width: 600px) {
    .company-info {
        margin-bottom: 10px;
    }
}

.company {
    color: #7f8c8d;
    font-style: italic;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1em;
    line-height: 1.4;
}

.company-details {
    color: #95a5a6;
    font-size: 0.9em;
    line-height: 1.4;
    margin-bottom: 0;
    font-weight: 400;
}

/* Tablet and larger screens */
@media (min-width: 600px) {
    .company-details {
        font-size: 0.95em;
    }
}

.achievements {
    margin-top: 12px;
}

/* Tablet and larger screens */
@media (min-width: 600px) {
    .achievements {
        margin-top: 15px;
    }
}

.achievement-category {
    margin-bottom: 15px;
}

/* Tablet and larger screens */
@media (min-width: 600px) {
    .achievement-category {
        margin-bottom: 20px;
    }
}

.achievement-title {
    color: #2c3e50;
    font-size: 1.05em;
    font-weight: 700;
    margin-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 4px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 0.95em;
}

/* Tablet and larger screens */
@media (min-width: 600px) {
    .achievement-title {
        font-size: 1.05em;
        margin-bottom: 12px;
        padding-bottom: 6px;
    }
}

.achievement-bullets {
    margin-left: 15px;
    margin-bottom: 0;
}

/* Tablet and larger screens */
@media (min-width: 600px) {
    .achievement-bullets {
        margin-left: 20px;
    }
}

.achievement-bullet {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #34495e;
    font-size: 0.98em;
    position: relative;
    padding-left: 5px;
}

.achievement-bullet::before {
    content: '▸';
    position: absolute;
    left: -15px;
    color: #3498db;
    font-weight: bold;
    font-size: 1.1em;
}

/* Tablet and larger screens */
@media (min-width: 600px) {
    .achievement-bullet {
        margin-bottom: 10px;
        font-size: 1.02em;
    }
}

.metric-highlight {
    background: linear-gradient(120deg, #a8e6cf 0%, #dcedc1 100%);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.2);
    box-shadow: 0 1px 3px rgba(39, 174, 96, 0.1);
    position: relative;
    display: inline-block;
}

.metric-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    border-radius: 4px;
}

/* Highlighted Projects Section */
.projects {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
}

.projects:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-left-color: #1abc9c;
}

/* Personal Interests Section - Same styling as Projects */
section.personal-interests {
    margin-bottom: 2rem !important;
    padding: 1.5rem !important;
    background: white !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    border-left: 4px solid #3498db !important;
    transition: all 0.3s ease !important;
}

section.personal-interests:hover {
    transform: translateX(5px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    border-left-color: #1abc9c !important;
}

/* Legend Section - Compact styling */
.legend {
    margin-bottom: 45px !important;
    margin-top: -60px !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.legend h2 {
    font-size: 0.95em !important;
    margin-bottom: 4px !important;
    border: none !important;
    border-bottom: none !important;
    border-top: none !important;
    padding-bottom: 0 !important;
    color: #666 !important;
    text-transform: none !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.legend h2::after {
    display: none !important;
    content: none !important;
}

.legend p {
    margin: 2px 0 !important;
    font-size: 0.92em !important;
    font-weight: 600 !important;
    color: #777 !important;
    line-height: 1.3 !important;
}

.legend::after {
    display: none !important;
    content: none !important;
}

.project {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

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

.project-name {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-description {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.project-diagram-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

.project-diagram-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.8rem;
    color: inherit;
    text-decoration: none;
    background: #f8fafc;
    border: 1px solid #d7e0ea;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.project-diagram-card:hover,
.project-diagram-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(44, 62, 80, 0.14);
}

.project-diagram-card:focus-visible {
    outline: 2px solid #2c3e50;
    outline-offset: 2px;
}

.project-diagram {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #d7e0ea;
    background: #fff;
}

.project-diagram-caption {
    font-size: 0.92rem;
    font-weight: 600;
    color: #314254;
    line-height: 1.4;
}
