:root {
    --bg-gradient: linear-gradient(135deg, #1a1c2c 0%, #4a192c 50%, #0f1c30 100%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --text-color: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --accent-gradient: linear-gradient(90deg, #ff4d4d, #f9cb28); /* Red/Orange fire/sunset look */
    --accent-color: #ff4d4d; /* Fallback */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'Fira Code', monospace;
}

body {
    background: var(--bg-gradient);
    background-attachment: fixed;
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    margin: 0;
    min-height: 100vh;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Glass Card Mixin */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
    padding: 2rem;
}

header {
    background: rgba(20, 20, 30, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    opacity: 0.8;
}

nav a:hover {
    opacity: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

h1, h2, h3 {
    margin-top: 0;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    margin-bottom: 1.5rem;
}

h2 {
    color: var(--text-color);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Code Snippets */
pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin: 2rem 0;
}

code {
    font-family: var(--font-mono);
    color: #a5b3ce;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--accent-gradient);
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    margin-top: 1rem;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 77, 77, 0.4);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
}

footer a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 0.5rem;
}

/* Specific Page: Index */
.hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.hero pre {
    text-align: left;
    max-width: 700px;
    margin: 2rem auto;
}

/* Specific Page: GitHub */
.contributions-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    list-style: none;
    padding: 0;
}

.contribution-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.contribution-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.07);
}

.contribution-item h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* Specific Page: Archives */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

th {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-weight: 600;
}

tr:last-child td {
    border-bottom: none;
}

td a {
    color: var(--accent-color);
}

.course-list li {
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
}

.proj {
    color: #fff;
    font-weight: 600;
    display: block;
    margin-bottom: 0.3rem;
}

@media (max-width: 600px) {
    h1 { font-size: 2.2rem; }
    .container { padding: 1rem; }
    nav ul { gap: 1rem; font-size: 0.9rem; }
}

.glass-card-hover {
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.glass-card-hover:hover {
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.08) !important;
}

.commits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
}
