:root {
    --bs-primary: #0f172a;
    --bs-primary-rgb: 15, 23, 42;
    --accent-color: #2563eb;
}

body {
    font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #334155;
    overflow-x: hidden;
}

.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.navbar .navbar-nav {
    align-items: center;
    gap: 0.5rem;
}

.navbar .nav-link {
    color: #0f172a !important;
    font-weight: 500;
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.navbar .nav-link:hover {
    color: var(--accent-color, #2563eb) !important;
    background-color: rgba(37, 99, 235, 0.08); /* Soft blue background fill */
}

.navbar .nav-link i.fa-linkedin {
    font-size: 1.25rem;
    padding: 0.25rem;
}

.hero-section {
    position: relative;
    padding-top: 100px;
    padding-bottom: 40px;
    overflow: hidden;
    background: radial-gradient(circle at 5% 15%, rgba(37, 99, 235, 0.22) 0%, rgba(241, 245, 249, 0.5) 45%, #ffffff 80%);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 500px;
    max-height: 500px;
    border-radius: 50%;
    z-index: 0;
    filter: blur(40px);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-img-wrapper {
    position: relative;
    z-index: 1;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile-img {
    width: 100%;
    max-width: 300px;
    max-height: 300px;
    object-fit: contain;
    border-radius: 50%;
    display: block;
    background-color: #f8fafc;
}

#resume {
    position: relative;
    overflow: hidden;
}

#resume::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(234, 88, 12, 0.42) 0%, rgba(249, 115, 22, 0.25) 50%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    filter: blur(65px);
    pointer-events: none;
}

#resume .container {
    position: relative;
    z-index: 1;
}

.cert-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    color: #475569;
    font-size: 0.875rem;
}

.cert-list li {
    display: flex;
    align-items: flex-start;
    line-height: 1.4;
}

.cert-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--bs-primary, #0f172a);
    margin-right: 0.6rem;
    font-size: 0.8rem;
    line-height: 1.4;
    flex-shrink: 0;
}
.competency-group {
    margin-bottom: 0.75rem;
}

.competency-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: #1e293b;
    margin-bottom: 0.35rem;
}

.competency-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.competency-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    color: #334155;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.35rem 0.55rem;
    transition: all 0.2s ease;
}

.competency-badge:hover {
    border-color: rgba(37, 99, 235, 0.35);
    background-color: #f1f5f9;
}

.portfolio-desc {
    text-align: center;
    margin-bottom: 1.5rem;
}

.portfolio-desc,
.portfolio-desc a {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    text-decoration: underline;
}

.portfolio-desc a:hover {
    color: var(--accent-color, #2563eb);
}

.portfolio-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                border-color 0.4s ease;
}

.portfolio-card:hover {
    color: inherit;
    transform: translateY(-8px);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.1), 
                0 8px 10px -6px rgba(37, 99, 235, 0.1);
}

.portfolio-card-media {
    position: relative;
    display: block;
    overflow: hidden;
}

.portfolio-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.portfolio-card-body {
    padding: 1rem;
    flex-grow: 1;
}

.portfolio-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    text-decoration: underline;
    margin-bottom: 0.5rem;
}

.portfolio-card-text {
    font-size: 0.875rem;
    color: #64748b;
    text-decoration: none;
    margin-bottom: 0;
    line-height: 1.45;
}

.image-attribution-container {
    position: relative;
    overflow: hidden;
}

.image-attribution-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: 0.85rem;
    padding: 8px 12px;
    text-align: center;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.image-attribution-container:hover .image-attribution-overlay {
    opacity: 1;
    transform: translateY(0);
}

a.card-category {
    text-decoration: none;
    color: inherit;
    display: block;
}

a.card-category:hover {
    color: inherit;
}

.timeline-item {
    position: relative;
    padding-left: 1.5rem;
    border-left: 3px solid var(--accent-color);
    transition: border-color 0.3s ease;
}

.interactive-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

.interactive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.badge-custom {
    transition: all 0.2s ease;
}

/* For ADA Compliance */
a:focus-visible, button:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 3px;
}