        @import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&display=swap');

        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            background-color: #eeeeee;
            color: #2c3e50;
            font-size: 17px;
            font-family: 'JetBrains Mono', monospace;
            font-weight: 600;
            line-height: 1.6;
            min-height: 100vh;
        }

        .container {
            max-width: 1100px;
            margin: 0 auto;
            padding: 40px 20px;
            margin-top: 20px;
            margin-bottom: 20px;
        }

        .header {
            text-align: center;
            margin-bottom: 20px;
            padding-bottom: 0px;
            position: relative;
        }

        .header h1 {
            font-size: 3em;
            margin: 0;
            font-weight: 700;
            color: #2c3e50;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
            letter-spacing: -1px;
        }

        .header .subtitle {
            font-size: 1.3em;
            margin: 15px 0;
            color: #7f8c8d;
            font-weight: 300;
        }

        .contact-links {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin-top: 7px;
            margin-bottom: 0px;
            flex-wrap: wrap;
        }

        .contact-links a {
            color: #0073e6;
            text-decoration: none;
            font-size: 1em;
            font-weight: 500;
            padding: 0px 0;
            position: relative;
        }

        .contact-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: #3498db;
        }

        .contact-links a:hover::after {
            width: 100%;
        }

        .tabs {
            display: flex;
            justify-content: center;
            margin-bottom: 20px;
            border-bottom: 2px solid #141414;
        }

        .tab {
            background-color: transparent;
            border: none;
            padding: 15px 45px;
            font-family: Monospace;
            font-size: 16px;
            cursor: pointer;
            color: #141414;
            border-bottom: 2px solid transparent;
            margin-bottom: -2px;
            position: relative;
            transition: all 0.3s ease;
        }

        .tab::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 2px;
            background: #3498db;
            transition: width 0.3s ease;
        }

        .tab:hover {
            background-color: #eeeeee;
            transform: translateY(1px);

            color: #0073e6;
        }

        .tab:hover::after {
            width: 100%;
        }

        .tab.active {
            border-bottom: 2px solid #0073e6;
            color: #0073e6;
        }

        .tab.active::after {
            width: 100%;
            background: #0073e6;
        }

        .tab-content {
            display: none;
            padding: 20px 0;
            line-height: 1.6;
        }

        .tab-content.active {
            display: block;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .section-title {
            font-size: 1.4em;
            font-weight: 600;
            margin: 30px 0 20px 0;
            color: #2c3e50;
            border-left: 4px solid #3498db;
            padding-left: 15px;
        }

        .project-item, .publication-item {
            margin: 25px 0;
            padding: 25px;
            background: white;
            border: 1px solid #e1e8ed;
            border-radius: 8px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
        }

        .project-item:hover, .publication-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
            border-color: #3498db;
        }

        .project-title, .publication-title {
            font-weight: 600;
            color: #3498db;
            margin-bottom: 8px;
            font-size: 1.1em;
        }

        .skills-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 15px;
            margin: 25px 0;
            list-style: none;
            padding: 0;
        }

        .skills-list li {
            padding: 15px 20px;
            background: white;
            border: 1px solid #e1e8ed;
            border-radius: 8px;
            font-weight: 500;
            transition: all 0.3s ease;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }

        .skills-list li:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
            border-color: #3498db;
            background: #f8f9fa;
        }

        details {
            margin: 20px 0;
            border: 1px solid #e1e8ed;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }

        summary {
            cursor: pointer;
            padding: 20px;
            background: white;
            font-weight: 500;
            color: #2c3e50;
            transition: all 0.3s ease;
            border-bottom: 1px solid transparent;
        }

        summary:hover {
            background: #f8f9fa;
            color: #3498db;
        }

        details[open] summary {
            border-bottom: 1px solid #e1e8ed;
            background: #f8f9fa;
        }

        .detail-content {
            padding: 25px;
            background: #fdfdfd;
            color: #5a6c7d;
            line-height: 1.7;
        }

        .link-list {
            list-style: none;
            padding: 0;
        }

        .link-list li {
            margin: 15px 0;
            padding: 15px;
            background: white;
            border: 1px solid #e1e8ed;
            border-radius: 6px;
            transition: all 0.3s ease;
        }

        .link-list li:hover {
            background: #f8f9fa;
            border-color: #3498db;
        }

        .footer-divider {
            margin: 50px 0 30px 0;
            height: 2px;
            background: linear-gradient(90deg, transparent, #3498db, transparent);
            border: none;
        }

        .footer-quote {
            text-align: center;
            font-style: italic;
            color: #7f8c8d;
            font-size: 1.1em;
            margin: 20px 0;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .container {
                margin: 10px;
                padding: 20px;
            }

            .header h1 {
                font-size: 2.2em;
            }

            .contact-links {
                gap: 15px;
            }

            .contact-links a {
                font-size: 0.9em;
                padding: 6px 0;
            }

            .tabs {
                flex-wrap: wrap;
                gap: 4px;
            }

            .tab {
                font-size: 12px;
                padding: 12px 16px;
            }

            .skills-list {
                grid-template-columns: 1fr;
            }
        }

        /* Subtle animations */
        .project-item, .skills-list li, details {
            opacity: 0;
            animation: slideUp 0.6s ease forwards;
        }

        .project-item:nth-child(2) { animation-delay: 0.1s; }
        .project-item:nth-child(3) { animation-delay: 0.2s; }
        .project-item:nth-child(4) { animation-delay: 0.3s; }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }


/* Project Images */
.project-image {
    margin: 15px 0;
    text-align: center;
}

.project-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-image.small img {
    max-width: 300px;
}

.project-image.medium img {
    max-width: 500px;
}

.project-image.large img {
    max-width: 700px;
}

.project-image .image-caption {
    font-size: 0.9em;
    color: #7f8c8d;
    font-style: italic;
    margin-top: 8px;
    font-weight: 400;
}

/* Responsive images */
@media (max-width: 768px) {
    .project-image.small img,
    .project-image.medium img,
    .project-image.large img {
        max-width: 100%;
    }
}


/* Left-aligned project images */
.project-image.left {
    text-align: left;
    margin: 15px 0;
}

.project-image.left img {
    display: block; /* Ensures the image respects text-align: left */
}

.project-image.left .image-caption {
    text-align: left;
    margin-top: 8px;
}

/* Optional: Float left for text wrapping around image */
.project-image.left.float {
    float: left;
    margin: 0 20px 15px 0;
    max-width: 40%;
}

.project-image.left.float + p {
    margin-top: 0;
}

/* Clear floats after project items */
.project-item::after {
    content: "";
    display: table;
    clear: both;
}

/* YouTube Video Embedding */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 32.125%; /* aspect ratio */
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.video-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Video caption styling - DEFAULT CENTER ALIGNED */
.video-caption {
    font-size: 0.9em;
    color: #7f8c8d;
    font-style: italic;
    margin-top: 10px;
    text-align: center;
    font-weight: 400;
}

/* Video caption left-aligned option */
.video-caption.left {
    text-align: left;
}

/* Smaller video option */
.video-container.small {
    max-width: 400px;
    margin: 20px auto;
}

/* Medium video option */
.video-container.medium {
    max-width: 600px;
    margin: 20px auto;
}

/* Left-aligned video */
.video-container.left {
    margin: 20px 0;
}

/* Responsive video */
@media (max-width: 768px) {
    .video-container {
        margin: 15px 0;
    }
    
    .video-container.small,
    .video-container.medium {
        max-width: 100%;
    }
}





.inline-image {
    height: 1.8em;
    width: auto;
    vertical-align: middle;
    margin-right: 12px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}



.float-left-image {
    float: left;
    max-width: 80px;
    height: auto;
    margin: 0 15px 10px 0;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.content-with-image {
    overflow: hidden;
}

.content-with-image p {
    margin: 0;
    text-align: justify;
}


.image-caption a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.image-caption a:hover {
    text-decoration: underline;
}


.inline-image + a {
    font-size: 0.9em;
    font-weight: 500;
}

@media (max-width: 768px) {
    .float-left-image {
        max-width: 60px;
        margin: 0 10px 8px 0;
    }
    
    .inline-image {
        height: 1.5em;
        margin-right: 8px;
    }

    .inline-image + a {
        font-size: 0.85em;
    }

}

