    /* Color Palette - Premium Futuristic Dark */
    :root {
    --bg-dark: #080911; 
    --bg-darker: #020204;
    
    /* Background Gradient: Elegant deep glow */
    --bg-gradient: radial-gradient(circle at 50% -20%, #22125a 0%, #080911 70%);

    /* Cards - Modern Glassmorphism */
    --card-bg: rgba(17, 19, 35, 0.75); 
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover: rgba(25, 28, 50, 0.85);

    /* Text Colors */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-link: #38bdf8;

    /* Accents - CYBERPUNK VIBE */
    --accent-primary: #8b5cf6; /* Violet */
    --accent-secondary: #0ea5e9; /* Sky Blue */
    --accent-tertiary: #f43f5e; /* Rose */
    --accent-glow: rgba(139, 92, 246, 0.4);

    /* Spacing & Layout */
    --radius-xl: 30px;
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;

    /* Shadows & Effects */
    --shadow-main: 0 15px 50px -12px rgba(0, 0, 0, 0.8);
    --shadow-glow: 0 0 25px rgba(139, 92, 246, 0.15);
    --blur-glass: 12px;

    /* Fonts */
    --font-primary: 'Inter', 'Poppins', system-ui, sans-serif;
}

/* --- Global Reset & Body --- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 5px;
    border: 2px solid var(--bg-darker);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Background Animated Orbs */
body::before, body::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.1;
    pointer-events: none;
    animation: floatOrb 25s infinite ease-in-out alternate;
}
body::before {
    background: var(--accent-primary);
    top: -150px;
    left: -150px;
}
body::after {
    background: var(--accent-secondary);
    bottom: -150px;
    right: -150px;
    animation-delay: -5s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 80px); }
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1100px;
    position: relative;
}

/* --- Header Section --- */
.header {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 50px;
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-main);
    animation: slideDown 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

/* Shine effect on header */
.header::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow-glow);
    overflow: hidden;
    flex-shrink: 0;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 0 40px var(--accent-glow);
    border-color: var(--accent-primary);
}

.intro {
    flex-grow: 1;
}

.intro h1 {
    margin: 0;
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.intro p.role {
    margin: 12px 0 20px;
    color: var(--accent-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    display: inline-block;
    background: rgba(14, 165, 233, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.intro p.bio {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 650px;
    line-height: 1.7;
}

/* --- Main Grid Layout --- */
.grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    animation: fadeIn 1s ease-out 0.3s backwards;
}

/* --- Card Styling --- */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-main);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    background: var(--card-hover);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}

/* Section Titles */
h2.title {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.4rem;
    color: #fff;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

h2.title::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background: var(--accent-primary);
    border-radius: 2px;
    box-shadow: 0 0 15px var(--accent-primary);
    transform: rotate(45deg);
}

/* --- Table Styles (Education) --- */
.table-container {
    overflow-x: auto; /* Scroll table on mobile */
    border-radius: var(--radius-sm);
}

table.education {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px; /* Ensure table structure mostly holds */
}

table.education th {
    text-align: left;
    color: var(--text-muted);
    font-weight: 600;
    padding: 15px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--card-border);
}

table.education td {
    padding: 20px 15px;
    font-size: 0.95rem;
    color: var(--text-main);
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: background 0.2s;
}

table.education tr:last-child td {
    border-bottom: none;
}

table.education tr:hover td {
    background: rgba(255,255,255,0.02);
}

/* --- Hobbies List --- */
ul.hobbies {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

ul.hobbies li {
    background: rgba(255,255,255,0.03);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-muted);
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

ul.hobbies li::before {
    content: '•';
    color: var(--accent-secondary);
    font-size: 1.2rem;
    line-height: 0;
}

ul.hobbies li:hover {
    border-color: var(--accent-secondary);
    color: #fff;
    background: rgba(14, 165, 233, 0.1);
    transform: translateY(-2px);
}

/* --- Contact List --- */
.contact-list {
    display: grid;
    gap: 15px;
}

.contact-list a {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255,255,255,0.02);
    padding: 15px 20px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.contact-list a:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--accent-primary);
    color: #fff;
    padding-left: 25px;
}

/* --- Socials (Profile Card) --- */
.socials {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.socials a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 1.4rem;
    transition: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid var(--card-border);
    text-decoration: none;
}

.socials a:hover {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-pink));
    border-color: transparent;
    color: white;
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 10px 20px -5px rgba(236, 72, 153, 0.4);
}

/* --- Sidebar Links --- */
/* --- Assignment Grid (The WOW part) --- */
.assignments-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    width: 100%;
    margin-top: 30px;
}

.assignment-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(var(--blur-glass));
}

.assignment-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.assignment-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6), 0 0 20px rgba(139, 92, 246, 0.2);
}

.assignment-card:hover::before {
    opacity: 1;
}

.assignment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.assignment-number {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(14, 165, 233, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
}

.assignment-card h3 {
    margin: 10px 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}

.assignment-q-box {
    background: rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.05);
}

.assignment-q-box p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.assignment-actions {
    margin-top: auto;
    display: flex;
    gap: 12px;
}

.btn-modern {
    flex: 1;
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), #7c3aed);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
    background: linear-gradient(135deg, #9333ea, #6d28d9);
}

.btn-outline {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

/* Question Modal/Details in Card */
.assignment-details {
    width: 100%;
}

.assignment-details summary {
    list-style: none;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.assignment-details summary::after {
    content: '\f107';
    font-family: 'FontAwesome';
    transition: transform 0.3s;
}

.assignment-details[open] summary::after {
    transform: rotate(180deg);
}

/* --- Accordions / Details --- */
details {
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

details[open] {
    border-color: var(--accent-primary);
    background: rgba(0,0,0,0.3);
}

summary {
    list-style: none; /* Hide default arrow */
    padding: 16px 20px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
    user-select: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary:hover {
    background: rgba(255,255,255,0.03);
}

summary::after {
    content: '+';
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

details[open] summary::after {
    transform: rotate(45deg);
    color: var(--accent-primary);
}

.details {
    padding: 20px;
    border-top: 1px solid var(--card-border);
    background: rgba(0,0,0,0.2);
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    animation: fadeIn 0.4s ease;
}

details img {
    max-width: 100%;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
}

/* --- Code Blocks --- */
pre {
    background: #0d1117;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    border: 1px solid #30363d;
    color: #c9d1d9;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 15px 0;
}

/* --- Buttons --- */
button.view {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #7c3aed 100%);
    border: none;
    padding: 14px;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
    text-transform: uppercase;
    font-size: 0.8rem;
    position: relative;
    overflow: hidden;
}

button.view::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

button.view:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.6);
}

button.view:hover::before {
    opacity: 1;
}

a{
    text-decoration: none;
}

/* --- Footer --- */
footer {
    text-align: center;
    color: var(--text-muted);
    margin-top: 60px;
    font-size: 0.9rem;
    padding-bottom: 20px;
    opacity: 0.8;
}

/* --- Animations --- */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- RESPONSEIVE MEDIA QUERIES (Professional Mobile Support) --- */

/* Tablet & Smaller Laptops */
@media (max-width: 1024px) {
    .container {
        max-width: 90%;
    }
}

/* Tablets (Portrait) & Large Phones */
@media (max-width: 900px) {
    .grid {
        grid-template-columns: 1fr; /* Stack main content and sidebar */
        gap: 40px;
    }

    .socials {
        justify-content: flex-start;
    }
}

/* Mobile Devices */
@media (max-width: 650px) {
    body {
        padding: 20px 15px;
    }

    /* Stack Header elements */
    .header {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
        gap: 30px;
    }

    .avatar {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }

    .intro h1 {
        font-size: 2.4rem; /* Smaller font for mobile */
    }

    .intro p.bio {
        font-size: 1rem;
        margin: 0 auto;
    }

    /* Cards reduce padding */
    .card {
        padding: 25px 20px;
    }

    /* Table adjustments */
    table.education th, 
    table.education td {
        padding: 12px 10px;
        font-size: 0.85rem;
    }
    
    .table-container {
        margin: 0 -10px; /* Pull table slightly out to use more width */
        width: calc(100% + 20px);
        padding: 0 10px;
    }

    /* Socials center alignment */
    .socials {
        justify-content: center;
    }
    
    .contact-list a {
        font-size: 0.9rem;
        padding: 12px 15px;
    }
}

/* Very Small Screens (e.g., iPhone SE) */
@media (max-width: 380px) {
    .intro h1 {
        font-size: 2rem;
    }
    
    .header {
        padding: 30px 15px;
    }
}

/* Specific Fixes for Mobile Responsiveness */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr !important;
        display: flex;
        flex-direction: column;
    }

    .header {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .avatar {
        margin-bottom: 20px;
    }

    .intro h1 {
        font-size: 2.2rem;
    }

    /* Make assignments grid single column on mobile */
    .assignments-container {
        grid-template-columns: 1fr;
    }
    
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Ensure pre tags don't overflow */
    pre {
        white-space: pre-wrap;       /* css-3 */
        white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
        white-space: -pre-wrap;      /* Opera 4-6 */
        white-space: -o-pre-wrap;    /* Opera 7 */
        word-wrap: break-word;       /* Internet Explorer 5.5+ */
        overflow-x: auto;
    }
}