:root {
    --bg-1: linear-gradient(135deg, #0f172a 0%, #071326 60%, #0b2540 100%);
    --glass: rgba(255, 255, 255, 0.06);
    --muted: rgba(255, 255, 255, 0.7);
    --accent: #7c5cff;
    --accent-2: #3ddc97;
    --card-radius: 16px;
    --max-width: 980px;
}

/* Reset & base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html,
body {
    height: 100%
}

body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: var(--bg-1);
    color: #e6eef8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.45;
    padding: 32px 20px;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 6px 30px rgba(2, 6, 23, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(6px) saturate(120%);
}

/* Navigation */
nav {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
}

nav a {
    color: var(--muted);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 600;
}

nav a:hover {
    background: var(--glass);
    color: #fff;
    transform: translateY(-1px)
}

/* Header */
header,
.hero {
    display: flex;
    align-items: center;
    gap: 20px
}

.hero {
    justify-content: space-between
}

.hero .title {
    text-align: left;
}

h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    letter-spacing: -0.5px
}

h2 {
    font-size: 20px;
    margin: 16px 0 8px
}

h3 {
    font-size: 18px;
    margin: 8px 0
}

/* Avatar */
.avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 200px;
    box-shadow: 0 8px 30px rgba(12, 18, 38, 0.6);
    border: 4px solid rgba(255, 255, 255, 0.04);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

/* Cards */
.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02));
    border-radius: var(--card-radius);
    padding: 18px;
    margin: 10px 0;
    box-shadow: 0 6px 20px rgba(3, 7, 20, 0.6);
}

/* Two-column layout for top section */
.top-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
    margin-bottom: 18px
}

/* Skills list */
ul {
    list-style: none
}

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

.skills li {
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(2, 6, 23, 0.5);
}

/* Projects grid */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 12px
}

.project-card {
    border-radius: 12px;
    overflow: hidden;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.04));
    transition: transform .28s ease, box-shadow .28s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(3, 7, 20, 0.6)
}

.project-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px
}

.project-card a {
    margin-top: auto;
    font-weight: 700;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 8px;
    display: inline-block
}

/* Section title decoration */
.section-title {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.08);
    font-weight: 700;
    margin-top: 6px
}

/* Contact */
.contact a {
    display: inline-block;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #042027;
    font-weight: 700
}

.contact a:hover {
    opacity: 0.95;
    transform: translateY(-2px)
}

/* Footer / small print */
hr {
    border: 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.04);
    margin: 18px 0
}

/* Friends page tweaks — images large and centered */
.friends-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px
}

.friends-list li {
    background: var(--glass);
    padding: 12px;
    border-radius: 12px
}

.friends-list img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block
}

/* Responsive behaviour */
@media (max-width:900px) {
    .top-grid {
        grid-template-columns: 1fr;
    }

    .avatar {
        margin: 0 auto
    }
}

@media (max-width:520px) {
    body {
        padding: 18px
    }

    h1 {
        font-size: 22px
    }

    .avatar {
        width: 140px;
        height: 140px;
        flex: 0 0 140px
    }
}

/* Helpful utility classes */
.center {
    text-align: center
}

.small {
    font-size: 13px;
    opacity: 0.85
}