:root {
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --text-light: #1e3a5f;
    --text-dark: #f1f5f9;
    --sky-light: #0ea5e9;
    --sky-dark: #7dd3fc;
    --white-transparent: rgba(255, 255, 255, 0.7);
    --white-transparent-dark: rgba(255, 255, 255, 0.05);
    --border-light: #e0f2fe;
    --border-dark: #1e40af;
    --accent-color: #0ea5e9;
    --accent-hover-color: #38bdf8;
}

.dark {
    --accent-color: #38bdf8;
    --accent-hover-color: #7dd3fc;
}

html {
    scroll-behavior: smooth;
    transition: all 0.3s ease;
}

body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background: var(--bg-light);
    color: var(--text-light);
    overflow-x: hidden;
}

.dark body {
    background: var(--bg-dark);
    color: var(--text-dark);
}

nav {
    background: var(--bg-light);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(4px);
}

.dark nav {
    background: #1e293b;
}

nav a {
    margin-left: 1rem;
    color: var(--sky-light);
    font-weight: 600;
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

#theme-toggle {
    margin-left: 1rem;
    font-size: 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
}

#profile-about-projects {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 1rem;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .container {
    background: var(--white-transparent-dark);
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 768px) {
    .profile {
        flex-direction: row;
        gap: 2rem;
    }
}

.profile img {
    width: 144px;
    height: 144px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #7dd3fc;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    /* Use your defined accent variable */
    font-weight: 500;
    transition: color 0.3s ease, transform 0.2s ease;
}

a:hover {
    color: var(--accent-hover-color, #38bdf8);
    /* Fallback sky-400 */
    transform: translateY(-1px);
}

h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #38bdf8;
    padding-bottom: 0.25rem;
}

.text-sky {
    color: var(--sky-light);
}

.dark .text-sky {
    color: var(--sky-dark);
}

.section {
    margin-top: 2rem;
}

.card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.card a {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 1rem;
}

.dark .card {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-dark);
}

.tech-tag {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    margin-right: 0.5rem;
    display: inline-block;
}

.dark .tech-tag {
    background: #0c4a6e;
    color: #7dd3fc;
}

footer {
    text-align: center;
    margin-top: 4rem;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 0.9rem;
    border-radius: 0 0 20px 20px;
}

footer a {
    color: #0077b6;
    /* Light mode accent color */
    text-decoration: none;
}

footer a:hover {
    color: #00b4d8;
    /* Lighter accent on hover */
}

.dark footer {
    color: #f0f0f0;
}

.dark footer a {
    color: #4dd0e1;
    /* Accent color in dark mode */
}

.dark footer a:hover {
    color: #80deea;
    /* Lighter accent on hover */
}


#game-of-life {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0.15;
    z-index: -1;
}

.icon-links {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.icon {
    width: 18px;
    height: 18px;
    color: #444;
    transition: color 0.3s ease;
}

.icon-link:hover .icon {
    color: #0ea5e9;
    /* sky-500 accent */
}

.dark .icon {
    color: #ccc;
}

.dark .icon-link:hover .icon {
    color: #0ea5e9;
}