:root {
    /* Dark Theme (Default) */
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #252525;
    --border-primary: #2a2a2a;
    --border-secondary: #3a3a3a;
    
    --text-primary: #ffffff;
    --text-secondary: #e5e5e5;
    --text-tertiary: #c0c0c0;
    --text-muted: #a0a0a0;
    
    --scrollbar-track: rgba(0, 0, 0);

    --accent-from: #5c5cff;
    --accent-to: #764ba2;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
    
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-tertiary: #e5e5e5;
    --border-primary: #e0e0e0;
    --border-secondary: #d0d0d0;
    
    --text-primary: #0a0a0a;
    --text-secondary: #1a1a1a;
    --text-tertiary: #404040;
    --text-muted: #666666;
    
    --scrollbar-track: rgba(0, 0, 0);

    --accent-from: #5c5cff;
    --accent-to: #764ba2;
}

/* Selection */
::selection {
    background-color: var(--accent-from);
    color: white;
}

::-moz-selection {
    background-color: var(--accent-from);
    color: white;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar {
    width: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-from);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-primary);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-weight: 400;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-secondary);
    background-color: transparent;
    position: relative;
}

/* Add a background layer */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    z-index: -2;
    transition: background-color var(--transition-slow);
}

.container {
    max-width: 40%;
    margin: 3rem auto 0;   /* ⬅ centers horizontally, pushes below banner */
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.blur-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.05);
    animation: unblur 2s ease forwards;
}

@keyframes unblur {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.bold {
    color: var(--text-primary);
    font-weight: 500;
    background-image: linear-gradient(
        90deg,
        var(--accent-from),
        var(--accent-to)
    );
    background-size: 0% 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 1px;
}
.boldest {
    font-weight: 500;
    color: #fff;
    padding: 0.15em 0.3em;
    background: linear-gradient(90deg, var(--accent-from), var(--accent-to));
    background-size: 100% 100%;
}
.footer {
    margin-top: 2rem;
}

.bento-images {
    display: grid;
    grid-template-columns: 1fr 1.4fr; /* left smaller, right larger */
    gap: 12px;

    width: 100%;
    max-width: 100%;
}

.bento-images img {
    width: 100%;
    height: auto;          /* 🔥 keeps full image */
    max-width: 100%;

    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
    display: block;
}
@media (max-width: 768px) {
    .bento-images {
        grid-template-columns: 1fr;
    }
}

.container > * {
    opacity: 0;
    transform: translateY(10px);
    animation: itemFade 0.5s ease-out forwards;
    animation-delay: calc(var(--i) * 0.2s);
}

@keyframes itemFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.right-buttons {
    display: flex;
    gap: 0;
    align-items: center;
}

.theme-toggle {
    display: flex;
}

.theme-home {
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
}
.theme-back {
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
}

.theme-sound {
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
}

.theme-theme {
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
}

.theme-btn {
    width: 35px;
    height: 35px;
    background-color: var(--bg-secondary);
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.theme-btn svg {
    width: 15px;
    height: 15px;
}

.theme-btn:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

@media (max-width: 1321px) {
    .container {
        max-width: 80%;
        padding: 0 1.5rem;
    }
}

@media (max-width: 996px) {
    .container {
        max-width: 90%;
        padding: 0 1.5rem;
    }
}

.section-title {
    font-family: "Italianno", cursive;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: 0.01em;
    margin-top: 2rem;
}

@media (max-width: 640px) {
    .section-title {
        font-size: 2rem;
    }
}

.content {
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 0.90rem;
    color: var(--text-tertiary);
    letter-spacing: 0.01em;
}

.content p {
    margin-bottom: 1.5rem;
}

.content p:last-child {
    margin-bottom: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    display: block; /* kills flex/grid inheritance */
}
.project-view-image {
    display: block;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;      /* FULL viewport width */
    height: 25vh;
    object-fit: cover;
    animation: fadeIn 0.5s ease-out;
}
@media (max-width: 996px) {
.project-view-image {
        height: 15vh; /* taller on smaller screens */
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.gallery-pic {
    margin-bottom: 50px;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}
.view-link {
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--bg-secondary);
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: 
        background-color var(--transition-base),
        color var(--transition-base),
        transform var(--transition-fast);
}

.view-link:hover, .view-link svg:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.view-link:active {
    transform: translateY(0);
}

.profile-pic {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--accent-from) 0%, var(--accent-to) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.thoughts-view-image {
    display: block;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;      /* FULL viewport width */
    height: 25vh;
    object-fit: cover;
    animation: fadeIn 0.5s ease-out;
}
@media (max-width: 996px) {
.thoughts-view-image {
        height: 15vh; /* taller on smaller screens */
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#image-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);

    opacity: 0;
    pointer-events: none;
    transition: opacity 250ms ease;

    z-index: 9998; /* LOWER */
}

#image-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

/* CLONED IMAGE — ABOVE OVERLAY */
.lightbox-clone {
    position: fixed;
    z-index: 9999; /* HIGHER */

    border-radius: var(--radius-lg);
    box-shadow: 0 25px 70px rgba(0,0,0,0.45);
    background: transparent;

    opacity: 1; /* 🔥 IMPORTANT */
    filter: none; /* 🔥 IMPORTANT */

    transition:
        top 350ms cubic-bezier(0.22, 0.61, 0.36, 1),
        left 350ms cubic-bezier(0.22, 0.61, 0.36, 1),
        width 350ms cubic-bezier(0.22, 0.61, 0.36, 1),
        height 350ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
