body {
    background: #0f1117;
    color: #f5f5f5;
    font-family: Segoe UI;
}

.navbar {
    background: rgba(0,0,0,.8);
    backdrop-filter: blur(12px);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;

    background:
        url('../img/hero-bg.jpg')
        center center/cover;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.75);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
}

.hero-badge {
    color: #60a5fa;
}

.section {
    padding: 100px 0;
}

.section-title {
    margin-bottom: 40px;
}

.bg-soft {
    background: #171923;
}

.custom-card {
    background: #202330;
    padding: 30px;
    border-radius: 16px;
}

.project-card {
    background: #171923;
    overflow: hidden;
    border-radius: 20px;
}

.project-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.stack-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.stack-container span {
    background: #2563eb;
    padding: 10px 18px;
    border-radius: 999px;
}

.timeline div {
    margin-bottom: 20px;
    border-left: 2px solid #2563eb;
    padding-left: 20px;
}

.profile-wrapper {
    position: relative;
}

.profile-image {

    width: 100%;
    max-width: 320px;

    border-radius: 24px;

    border: 4px solid rgba(59,130,246,.25);

    box-shadow:
        0 0 40px rgba(59,130,246,.15);

}

.section-badge {

    display: inline-block;

    padding: 8px 16px;

    background: rgba(59,130,246,.15);

    color: #60a5fa;

    border-radius: 999px;

    margin-bottom: 15px;
}

.stat-card {

    background: #202330;

    padding: 20px;

    border-radius: 16px;

    text-align: center;
}

.stat-card h3 {

    color: #60a5fa;

    font-size: 2rem;

    margin-bottom: 5px;
}

.stat-card span {

    color: #9ca3af;

    font-size: .9rem;
}

.image-preview {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.95);

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    visibility: hidden;

    transition: opacity .25s ease;

    z-index: 9999;
}

.image-preview.show {
    opacity: 1;
    visibility: visible;
}

.image-preview img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;

    transform: scale(.9);
    opacity: 0;

    transition:
        transform .25s ease,
        opacity .25s ease;
}

.image-preview.show img {
    transform: scale(1);
    opacity: 1;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;

    width: 50px;
    height: 50px;

    border: none;
    border-radius: 50%;

    background: rgba(255,255,255,.15);
    color: white;

    font-size: 32px;
    line-height: 1;

    cursor: pointer;
    z-index: 10001;
}

.close-btn:hover {
    background: rgba(255,255,255,.3);
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    border: none;
    background: transparent;
    color: white;
    cursor: pointer;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(255,255,255,.15);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10000;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.nav-btn:hover {
    background: rgba(255,255,255,.3);
}

.preview-img {
    cursor: zoom-in;
    transition: transform .2s ease;
}

.preview-img:hover {
    transform: scale(1.02);
}

.image-preview {
    backdrop-filter: blur(5px);
}

.preview-enter-right {
    animation: slideFromRight .25s ease;
}

.preview-enter-left {
    animation: slideFromLeft .25s ease;
}

@keyframes slideFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}