body {
    margin: 0;
    min-height: 100vh;
    overflow: auto;
    background: black;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow: auto;
    background: black;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
}

.profile-card {
    width: 100%;
    max-width: 450px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    padding: 30px;
    text-align: center;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 100;
    margin: 20px 0;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

h1 {
    font-size: 28px;
    margin-bottom: 5px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.title {
    font-size: 18px;
    margin-bottom: 10px;
    opacity: 0.9;
    color: #a0d2ff;
}

.title2 {
    font-size: 18px;
    margin: 5px 0px 20px 0px;
    opacity: 0.9;
    color: #a0d2ff;
}

.description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.8;
}

.github-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.github-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1));
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.github-btn i {
    margin-right: 8px;
    font-size: 18px;
}

.contact-info {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    padding: 20px;
    margin-top: 15px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact-title {
    font-size: 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    color: #a0d2ff;
}

.contact-title i {
    margin-right: 8px;
    font-size: 18px;
}

.email {
    font-size: 15px;
    margin-bottom: 15px;
    word-break: break-all;
    opacity: 0.9;
}

.toggle-projects {
    background: linear-gradient(135deg, rgba(70, 130, 255, 0.35), rgba(122, 92, 255, 0.35));
    border: 1px solid rgba(160, 210, 255, 0.4);
    color: #e9f5ff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    margin-top: 5px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 10px 14px;
}

.toggle-projects:hover {
    transform: translateY(-1px);
    border-color: rgba(160, 210, 255, 0.7);
    background: linear-gradient(135deg, rgba(70, 130, 255, 0.5), rgba(122, 92, 255, 0.5));
}

.projects-list {
    font-size: 15px;
    background: rgba(0, 0, 0, 0.6);
    padding: 14px;
    border-radius: 10px;
    margin-top: 14px;
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #d8ecff;
    line-height: 1.4;
}

.projects-title {
    color: #7bb9ff;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 18px;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.project-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
}

.project-card {
    background: rgba(13, 20, 36, 0.75);
    border: 1px solid rgba(160, 210, 255, 0.18);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.project-link:hover .project-card {
    transform: translateY(-2px);
    border-color: rgba(160, 210, 255, 0.35);
}

.project-link:focus-visible {
    outline: 2px solid #7bb9ff;
    outline-offset: 2px;
}

.project-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.project-content {
    padding: 14px;
}

.project-content h3 {
    font-size: 20px;
    margin-bottom: 6px;
    color: #e9f5ff;
}

.project-content p {
    font-size: 14px;
    color: #b8d8f6;
}

.back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
    color: #a0d2ff;
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    color: #d8ecff;
}

.subpage-card {
    max-width: 720px;
}

.subpage-card .project-image {
    height: 320px;
}

.subpage-card .project-content h2 {
    font-size: 28px;
    color: #e9f5ff;
    margin-bottom: 10px;
}

.subpage-card .project-content p {
    font-size: 16px;
    color: #d8ecff;
}

/* Canvas positioning - fixed but allow scrolling */
canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

/* Ensure content is above canvas */
body>*:not(canvas) {
    position: relative;
    z-index: 2;
}

@media (max-width: 480px) {
    body {
        padding: 10px;
        align-items: flex-start;
    }

    .profile-card {
        padding: 20px;
        margin: 10px;
    }

    h1 {
        font-size: 24px;
    }

    .title {
        font-size: 16px;
    }

    .profile-image {
        width: 100px;
        height: 100px;
        font-size: 32px;
    }

    .contact-info {
        padding: 15px;
    }

    .project-image {
        height: 170px;
    }

    .project-content h3 {
        font-size: 18px;
    }

    .subpage-card .project-image {
        height: 220px;
    }

    .github-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .profile-card {
        padding: 15px;
        margin: 5px;
    }

    .profile-image {
        width: 80px;
        height: 80px;
        font-size: 28px;
    }

    h1 {
        font-size: 22px;
    }

    .description {
        font-size: 14px;
    }
}
