: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 {
    font-weight: 400;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: transparent; /* Make body transparent */
    color: var(--text-secondary);
    display: flex;
    margin-top: 4rem;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    transition: color var(--transition-slow);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    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);
}
.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;
    }
}
.container {
    max-width: 40%;
    width: 100%;
    position: relative;
    z-index: 1; /* Make sure this is higher than overlay */
}
.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);
    }
}
.container {
    display: flex;
    flex-direction: column; /* 👈 THIS fixes everything */
    gap: 2rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    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;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.theme-toggle {
    display: flex;
}

.theme-home {
    border-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);
}

/* Responsive */
@media (max-width: 1321px) {
    body {
        padding: 1.5rem;
    }
    
    .container {
        max-width: 80%;
    }
}

@media (max-width: 996px) {
    body {
        padding: 1.5rem;
    }
    
    .container {
        max-width: 90%;
    }
}

.section-title {
    font-family: "Italianno", cursive;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

@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;
}

/* Projects Header with Filter Buttons */
.projects-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-buttons {
    display: flex;
    gap: 0;
    border-radius: 25px;
    overflow: hidden;
}

.filter-btn {
    padding: 0.5rem 1.0rem;
    background-color: var(--bg-secondary);
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-family: "Inter", sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-base);
    position: relative;
}

.filter-btn:first-child {
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
}

.filter-btn:last-child {
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
}

.filter-btn:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
}

.filter-btn.active {
    background: var(--border-primary);
    color: var(--text-primary);
}

/* Project Cards Animation */
.project-card {
    transition: all var(--transition-base);
}

.project-card.hidden {
    display: none;
}

/* Responsive adjustments for filter buttons */
@media (max-width: 640px) {
    .projects-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-buttons {
        width: 100%;
    }
    
    .filter-btn {
        flex: 1;
        text-align: center;
    }
}