:root {
    --bg-navy: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.45);
    --text-slate-light: #e2e8f0;
    --text-slate: #94a3b8;
    --text-slate-dark: #64748b;
    --accent-teal: #5eead4;
    --accent-teal-bg: rgba(45, 212, 191, 0.1);
    --border-subtle: rgba(148, 163, 184, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-navy);
    color: var(--text-slate);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Mouse Spotlight Effect */
#spotlight {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 30;
    transition: background 0.15s ease;
}

::selection {
    background-color: var(--accent-teal);
    color: #042f2e;
}

.layout-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .layout-wrapper {
        flex-direction: row;
        justify-content: space-between;
        gap: 48px;
        padding: 0 64px;
    }
}

/* Left Sticky Sidebar */
.sidebar {
    padding-top: 64px;
    padding-bottom: 40px;
}

@media (min-width: 1024px) {
    .sidebar {
        position: sticky;
        top: 0;
        max-height: 100vh;
        width: 45%;
        padding: 96px 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}

.name {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-slate-light);
    line-height: 1.15;
}

@media (min-width: 640px) {
    .name {
        font-size: 3rem;
    }
}

.role {
    margin-top: 12px;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-slate-light);
}

.tagline {
    margin-top: 16px;
    max-width: 340px;
    font-size: 0.95rem;
    color: var(--text-slate);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 6px 14px;
    border-radius: 9999px;
    background: var(--accent-teal-bg);
    color: var(--accent-teal);
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid rgba(94, 234, 212, 0.25);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-teal);
    box-shadow: 0 0 8px var(--accent-teal);
}

/* Sidebar Navigation */
.nav-menu {
    display: none;
    margin-top: 56px;
}

@media (min-width: 1024px) {
    .nav-menu {
        display: block;
    }
}

.nav-menu ul {
    list-style: none;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 12px 0;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-slate-dark);
    transition: color 0.2s ease;
}

.nav-indicator {
    display: inline-block;
    width: 32px;
    height: 1px;
    background-color: var(--text-slate-dark);
    margin-right: 16px;
    transition: all 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-slate-light);
}

.nav-link:hover .nav-indicator,
.nav-link.active .nav-indicator {
    width: 64px;
    background-color: var(--text-slate-light);
}

/* Social Links */
.socials {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 32px;
}

.socials a {
    color: var(--text-slate);
    transition: color 0.2s ease, transform 0.2s ease;
}

.socials a:hover {
    color: var(--text-slate-light);
    transform: translateY(-2px);
}

.socials svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* Right Scrollable Content */
.main-content {
    padding-bottom: 96px;
}

@media (min-width: 1024px) {
    .main-content {
        width: 55%;
        padding-top: 96px;
    }
}

section {
    margin-bottom: 96px;
    scroll-margin-top: 96px;
}

.section-heading-mobile {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    padding: 16px 0;
    margin-bottom: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-slate-light);
}

@media (min-width: 1024px) {
    .section-heading-mobile {
        display: none;
    }
}

.about-text p {
    margin-bottom: 16px;
    font-size: 0.98rem;
}

.highlight {
    color: var(--text-slate-light);
    font-weight: 500;
}

/* Interactive Cards */
.card-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.item-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.25s ease;
}

@media (min-width: 640px) {
    .item-card {
        grid-template-columns: 130px 1fr;
        gap: 20px;
    }
}

.item-card:hover {
    background-color: var(--bg-card);
    border-color: var(--border-subtle);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.card-meta {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-slate-dark);
    padding-top: 4px;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-slate-light);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.item-card:hover .card-title {
    color: var(--accent-teal);
}

.card-subtitle {
    font-size: 0.88rem;
    color: var(--text-slate-dark);
    margin-top: 2px;
}

.card-desc {
    font-size: 0.9rem;
    margin-top: 10px;
    color: var(--text-slate);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    list-style: none;
}

.tag {
    background-color: var(--accent-teal-bg);
    color: var(--accent-teal);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 9999px;
}

/* Certificates Grid */
.cert-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 640px) {
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cert-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.cert-card:hover {
    transform: translateY(-4px);
    border-color: rgba(94, 234, 212, 0.4);
    box-shadow: 0 12px 28px -12px rgba(2, 12, 27, 0.8);
}

.cert-thumb {
    width: 100%;
    height: 170px;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-subtle);
}

.cert-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.cert-card:hover .cert-thumb img {
    transform: scale(1.05);
}

.pdf-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--accent-teal);
    text-align: center;
    padding: 16px;
}

.pdf-placeholder span {
    font-size: 0.78rem;
    color: var(--text-slate);
}

.cert-badge-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.85);
    color: var(--accent-teal);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 6px;
    border: 1px solid rgba(94, 234, 212, 0.3);
}

.cert-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cert-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-slate-light);
    margin-bottom: 6px;
}

.cert-card:hover .cert-title {
    color: var(--accent-teal);
}

.cert-issuer {
    font-size: 0.8rem;
    color: var(--text-slate-dark);
}

.cert-action {
    margin-top: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-teal);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Resume / CV Button */
.resume-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-slate-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.resume-link:hover {
    color: var(--accent-teal);
}

/* Lightbox Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(9, 13, 22, 0.9);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.open {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    background: #1e293b;
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: #0f172a;
    border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
    font-size: 0.95rem;
    color: var(--text-slate-light);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-slate);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    color: var(--accent-teal);
}

.modal-body {
    padding: 16px;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0b0f19;
}

.modal-body img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 6px;
}

.modal-body iframe {
    width: 100%;
    height: 75vh;
    border: none;
}

footer {
    font-size: 0.85rem;
    color: var(--text-slate-dark);
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}