:root {
    --bg: #0f1724;
    /* deep slate */
    --card: #0b1220;
    --accent: #7c3aed;
    /* purple */
    --muted: #9aa6b2;
    --glass: rgba(255, 255, 255, 0.04);
    --radius: 12px;
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: linear-gradient(180deg, #071129 0%, #0d1624 100%);
    color: #e6eef6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 980px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 6px 30px rgba(2, 6, 23, 0.6);
    backdrop-filter: blur(6px);
}

.header {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 18px;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px dashed rgba(164, 6, 226, 0.06);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}




.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.intro h1 {
    margin: 0;
    font-size: 26px;
    letter-spacing: 0.2px
}

.intro p.role {
    margin: 6px 0 0;
    color: var(--muted);
    font-weight: 600
}

.intro p.bio {
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.5
}

.grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    margin-top: 18px;
}

/* Left column content */
.card {
    background: var(--card);
    border-radius: 10px;
    padding: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.01);
}

h2.title {
    margin: 0 0 12px 0;
    font-size: 18px;
    text-align: center;
}

table.education {
    width: 100%;
    border-collapse: collapse;
    color: var(--muted)
}

table.education td,
table.education th {
    padding: 8px 6px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.03);
    font-size: 14px
}

table.education th {
    text-align: left;
    color: #cfe3ff;
    font-weight: 600
}

ul.hobbies {
    list-style: disc;
    padding-left: 18px;
    color: var(--muted);
    margin: 0
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.contact-list a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600
}

.contact-list a:hover {
    color: var(--accent)
}


.profile-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: left;
    text-align: left;
}

.profile-card .stat {
    display: flex;
    gap: 8px;
    align-items: center
}



.socials {
    display: flex;
    gap: 10px;
    text-align: center;
    display: flex;
    justify-content: center;
}

.socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--glass);
    text-decoration: none;
    color: var(--muted);
    font-weight: 700
}

.socials a:hover {
    color: #fff;
    transform: translateY(-3px)
}



footer {
    margin-top: 18px;
    text-align: center;
    color: var(--muted);
    font-size: 13px
}

/* Responsive */
@media (max-width:880px) {
    .grid {
        grid-template-columns: 1fr
    }

   
}

@media (max-width:880px) {

    .header {
        flex-direction: column !important;   /* 🔥 photo alag line me */
        text-align: center !important;
    }

    .avatar {
        margin-bottom: 10px !important;      /* 🔥 photo ke neeche spacing */
    }

    .intro {
        text-align: center !important;       /* Text center ho jayega */
    }
}





.assignments {
    width: 100%;
    box-shadow: 0 6px 30px rgba(164, 6, 226, 0.06);
    text-align: left;

}

.assignments .list:hover{
   box-shadow: 0 6px 30px rgba(164, 6, 226, 0.05);
   background-color: var(--card);

}

.assignments .list {
    background-color: var(--bg);
    padding: 10px 5px;
    margin-top: 5px;

}

.assignments .list a{
    color: white;
    text-decoration: none;
}

.details {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 8px;
    max-width: 600px;
    margin: 5px;
}
.details a{
    text-decoration: none;
}

summary {
    cursor: pointer;
    list-style: none;
    padding: 6px;
    font-weight: 600;
}

details img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-top: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transition: transform .2s ease;
}



pre,
code {
    white-space: pre-wrap;
    word-wrap: break-word;
}

button.view{
    background-color: rgba(164, 6, 226, 0.06);
    border: 2px solid gray;
    color: white;
    display: flex;
    justify-self: center;
    padding: 10px;
    border-radius: 10px;
    
}

button.view:hover{
    background-color: #7c3aed;
    border: none;
    box-shadow: 0 6px 30px rgba(164, 6, 226, 0.06);
}