* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a1929;
    --bg-darker: #051422;
    --text-light: #e0e0e0;
    --text-muted: #b0b0b0;
    --nav-line: #4a5568;
    --nav-active: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-light);
    line-height: 1.6;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Fixed Left Sidebar */
.left-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 38%;
    height: 100vh;
    padding: 80px 60px 60px 60px;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.profile-header {
    margin-bottom: 50px;
}

.name {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.1;
    letter-spacing: -1px;
}

.title {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 400;
    opacity: 0.7;
}

.duke-logo {
    height: 1em;
    width: auto;
    vertical-align: middle;
    margin-right: 4px;
    display: inline-block;
}

.duke-text {
    color: #00539B;
    opacity: 1;
}

.tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    opacity: 0.6;
}

/* Vertical Navigation */
.vertical-nav {
    margin-bottom: 40px;
    padding: 16px 0;
}

.nav-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.2s ease;
    letter-spacing: 0.3px;
    opacity: 0.8;
}

.nav-link:hover {
    color: var(--text-light);
    opacity: 1;
}

.nav-link.active {
    color: var(--text-light);
    opacity: 1;
}

/* Profile Photo */
.photo-container {
    margin-top: 0;
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto;
    width: 200px;
    height: 200px;
}

.profile-photo {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    object-fit: cover;
    object-position: center 20%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease;
}

.profile-photo:hover {
    transform: translateY(-2px);
}

/* Social Links Bar (Fixed Right, Centered) */
.social-bar {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 100;
}

.social-link {
    color: var(--text-muted);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.social-link:hover {
    color: var(--text-light);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Scrollable Right Content */
.right-content {
    margin-left: 38%;
    padding: 100px 80px 100px 80px;
    max-width: 62%;
}

.content-section {
    margin-bottom: 100px;
}

.content-section:last-of-type {
    margin-bottom: 80px;
}

.content-section h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 50px;
    color: var(--text-light);
    letter-spacing: -0.3px;
    line-height: 1.3;
}

/* About Section */
.about-content {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-light);
    max-width: 680px;
}

.about-content p {
    margin-bottom: 24px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.quilombola-link {
    color: var(--text-light);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.4);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s ease;
}

.quilombola-link:hover {
    text-decoration-color: var(--text-light);
}

/* Experience Section */
.experience-list {
    list-style: none;
    max-width: 680px;
}

.experience-item {
    margin-bottom: 0;
}

.experience-item:last-of-type {
    margin-bottom: 0;
}

.experience-link {
    display: block;
    padding: 16px 28px;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 0;
    color: var(--text-light);
    text-decoration: none;
    line-height: 1.7;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.experience-link:hover {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
    gap: 16px;
}

.experience-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    opacity: 0.8;
    white-space: nowrap;
}

.experience-link strong {
    color: var(--text-light);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
}

/* Skills Section */
.skills-section {
    padding-top: 0;
}

.skills-block {
    margin-bottom: 32px;
    max-width: 720px;
}

.skills-block:last-of-type {
    margin-bottom: 0;
}

.skill-label {
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 0.2px;
}

.skill-items {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 16px;
}

.skill-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.4;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.skill-item:hover {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.skill-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Resume Link */
.resume-link-container {
    margin-top: 60px;
    padding-top: 0;
}

.resume-link {
    color: var(--text-light);
    text-decoration: underline;
    text-decoration-color: var(--text-muted);
    text-underline-offset: 4px;
    transition: text-decoration-color 0.2s ease;
    font-size: 0.95rem;
}

.resume-link:hover {
    text-decoration-color: var(--text-light);
}

/* Footer */
.footer {
    width: 100%;
    padding: 40px 80px 40px 60px;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 80px;
    text-align: center;
    /* position: relative;
    z-index: 20;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%); */
}

.footer p {
    margin: 0;
}

/* Responsive Design */

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    right: 32px;
    bottom: 32px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(5, 20, 34, 0.9);
    color: var(--text-light);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    z-index: 120;
}

.scroll-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-to-top:hover {
    transform: translateY(-2px);
    background-color: rgba(10, 25, 41, 1);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Tablet and below */
@media (max-width: 1024px) {
    .left-sidebar {
        width: 35%;
        padding: 60px 40px 40px 40px;
    }
    
    .right-content {
        margin-left: 35%;
        padding: 80px 50px 80px 50px;
        max-width: 65%;
    }
    
    .name {
        font-size: 3.5rem;
    }
}

/* Mobile and small tablets */
@media (max-width: 768px) {
    .left-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        padding: 40px 30px 30px 30px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .right-content {
        margin-left: 0;
        padding: 40px 30px 60px 30px;
        max-width: 100%;
    }
    
    .name {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .title {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    
    .tagline {
        font-size: 0.8rem;
    }
    
    .profile-header {
        margin-bottom: 30px;
    }
    
    .vertical-nav {
        display: none;
    }
    
    .photo-container {
        width: 120px;
        height: 120px;
        margin: 20px auto;
    }
    
    .social-bar {
        position: fixed !important;
        bottom: 20px !important;
        left: 50% !important;
        right: auto !important;
        top: auto !important;
        transform: translateX(-50%) !important;
        flex-direction: row !important;
        gap: 12px;
        background-color: rgba(10, 25, 41, 0.95);
        padding: 10px 14px;
        border-radius: 30px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        max-width: 90%;
        width: fit-content;
        margin: 0 auto;
    }
    
    .social-link {
        width: 28px !important;
        height: 28px !important;
        flex-shrink: 0;
        min-width: 28px;
    }
    
    .social-link svg {
        width: 20px !important;
        height: 20px !important;
    }
    
    .scroll-to-top {
        bottom: 80px;
        right: 20px;
    }
    
    .content-section {
        margin-bottom: 60px;
    }
    
    .content-section:last-of-type {
        margin-bottom: 40px;
    }
    
    .content-section h2 {
        font-size: 1.75rem;
        margin-bottom: 30px;
    }
    
    .about-content {
        font-size: 0.95rem;
        max-width: 100%;
    }
    
    .about-content p {
        margin-bottom: 20px;
    }
    
    .experience-list {
        max-width: 100%;
    }
    
    .experience-link {
        padding: 20px;
        font-size: 0.9rem;
    }
    
    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 8px;
    }
    
    .experience-date {
        font-size: 0.85rem;
        order: 2;
    }
    
    .experience-link strong {
        font-size: 0.95rem;
        order: 1;
    }
    
    .skills-block {
        margin-bottom: 28px;
        max-width: 100%;
    }

    .skill-items {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px 14px;
    }

    .skill-item {
        font-size: 0.9rem;
        padding: 7px 9px;
    }

    .footer {
        padding: 30px 20px;
        margin-top: 40px;
        font-size: 0.8rem;
    }

    .scroll-to-top {
        right: 20px;
        bottom: 80px;
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .left-sidebar {
        padding: 30px 20px 25px 20px;
    }
    
    .right-content {
        padding: 30px 20px 50px 20px;
    }
    
    .name {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .title {
        font-size: 0.9rem;
    }
    
    .tagline {
        font-size: 0.75rem;
    }
    
    .photo-container {
        width: 100px;
        height: 100px;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
    
    .about-content {
        font-size: 0.9rem;
        line-height: 1.75;
    }
    
    .experience-link {
        padding: 16px;
        font-size: 0.85rem;
    }
    
    .experience-link strong {
        font-size: 0.9rem;
    }
    
    .experience-date {
        font-size: 0.8rem;
    }

    .skills-block {
        margin-bottom: 20px;
    }

    .skill-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 12px;
    }

    .skill-item {
        font-size: 0.85rem;
        padding: 6px 8px;
    }
    
    .social-bar {
        padding: 8px 10px !important;
        gap: 10px !important;
        bottom: 15px !important;
        max-width: 95% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    .social-link {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px;
    }
    
    .social-link svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    .scroll-to-top {
        bottom: 70px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .footer {
        padding: 25px 15px;
        font-size: 0.75rem;
    }

    .scroll-to-top {
        right: 16px;
        bottom: 80px;
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

