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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #e6f7ff;
    overflow-x: hidden;
    /* Outer space background: deep base, subtle nebula and animated gradient */
    background-color: #030215;
    background-image: radial-gradient(at 10% 20%, rgba(106,90,205,0.12), transparent 10%),
                      radial-gradient(at 80% 80%, rgba(72,209,204,0.06), transparent 12%),
                      linear-gradient(180deg, #04041a 0%, #071020 60%, #000000 100%);
    background-repeat: no-repeat;
    background-attachment: fixed;
}

#scene-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

header {
    text-align: center;
    margin-bottom: 60px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

h1 {
    font-family: 'Orbitron', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 3.6em;
    margin-bottom: 10px;
    letter-spacing: 0.6px;
    /* cosmic gradient text */
    background: linear-gradient(90deg, #ffd166 0%, #ff6bcb 45%, #6ef0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 6px 18px rgba(110, 150, 255, 0.12), 0 2px 6px rgba(0,0,0,0.6);
}

.subtitle {
    font-size: 1.25em;
    color: #bcdff8;
    margin-bottom: 18px;
    font-weight: 400;
}

.location {
    font-size: 1.1em;
    color: #b0b0b0;
    margin-bottom: 30px;
}

.badges {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.04);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95em;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(174, 200, 255, 0.06);
    color: #dbeeff;
}

.section {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.08));
    backdrop-filter: blur(8px);
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(2,4,23,0.6);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

h2 {
    font-size: 2.0em;
    margin-bottom: 18px;
    color: #9be7ff;
    text-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.interest-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(174, 200, 255, 0.035);
    transition: transform 0.28s cubic-bezier(.2,.9,.3,1), box-shadow 0.28s ease;
}

.interest-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.interest-card h3 {
    font-size: 1.35em;
    margin-bottom: 10px;
    color: #ffd166;
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.project-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.02));
    padding: 22px;
    border-radius: 12px;
    border: 1px solid rgba(174, 200, 255, 0.03);
    transition: transform 0.28s ease, background 0.28s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.project-card h3 {
    font-size: 1.25em;
    margin-bottom: 10px;
    color: #ffd166;
}

.project-card p {
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 15px;
}

.project-link {
    display: inline-block;
    color: #07192b;
    text-decoration: none;
    font-size: 0.9em;
    padding: 8px 14px;
    background: linear-gradient(90deg, #7be0ff, #ff9bd6);
    border-radius: 10px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 6px 18px rgba(123,224,255,0.06);
}

.project-link:hover {
    background: rgba(100, 181, 246, 0.4);
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.skill-tag {
    background: rgba(255,255,255,0.02);
    color: #cfefff;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.9em;
    border: 1px solid rgba(174, 200, 255, 0.04);
}

/* Styles for GitHub-style badge groups */
.github-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px 18px;
    align-items: start;
}

.github-badges .skill-column h3 {
    margin: 0 0 8px 0;
    font-size: 1.05em;
    color: #dbeeff;
    font-weight: 600;
}

.github-badges p {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.github-badges img {
    height: 32px;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(10,18,30,0.35);
}

@media (max-width: 700px) {
    .github-badges img { height: 28px; }
}

footer {
    text-align: center;
    padding: 36px 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(0,0,0,0.06));
    backdrop-filter: blur(6px);
    border-radius: 12px;
    margin-top: 36px;
    border: 1px solid rgba(174,200,255,0.03);
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.social-link {
    color: #07192b;
    text-decoration: none;
    font-size: 1.05em;
    padding: 8px 12px;
    background: linear-gradient(90deg,#aef1ff,#ffc1ea);
    border-radius: 10px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 8px 24px rgba(10,18,30,0.45);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.social-link:hover {
    background: rgba(100, 181, 246, 0.4);
    transform: translateY(-3px);
}

.social-link img {
    width: 28px;
    height: 28px;
    display: block;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5em;
    }

    .subtitle {
        font-size: 1.2em;
    }

    .section {
        padding: 25px;
    }

    h2 {
        font-size: 1.8em;
    }
}

.loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2em;
    z-index: 1000;
}

/* small twinkling stars overlay */
#scene-container::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.8), transparent),
                      radial-gradient(1px 1px at 70% 10%, rgba(255,255,255,0.6), transparent),
                      radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,0.5), transparent),
                      radial-gradient(1px 1px at 85% 60%, rgba(255,255,255,0.4), transparent);
    opacity: 0.65;
    mix-blend-mode: screen;
}
