/* Design System Variables */
:root {
    --background: hsl(240, 10%, 3.9%);
    --foreground: hsl(0, 0%, 98%);
    --card: hsl(240, 10%, 8%);
    --card-foreground: hsl(0, 0%, 98%);
    --primary: hsl(263, 70%, 50%);
    --primary-foreground: hsl(0, 0%, 100%);
    --primary-glow: hsl(263, 85%, 65%);
    --secondary: hsl(240, 4%, 16%);
    --muted-foreground: hsl(240, 5%, 65%);
    --gradient-primary: linear-gradient(135deg, hsl(263, 70%, 50%), hsl(220, 85%, 55%));
    --shadow-glow: 0 0 40px hsla(263, 85%, 65%, 0.2);
    --shadow-card: 0 10px 40px -10px hsla(0, 0%, 0%, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* Header Styles */
.header {
    margin-bottom: 3rem;
    animation: slideInLeft 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
}

/* Layout */
.content-wrapper {
    display: flex;
    gap: 2rem;
}

/* Vertical Tabs */
.tabs-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 240px;
}

.tab-button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    background-color: var(--card);
    color: var(--card-foreground);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-align: left;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tab-button:nth-child(1) { animation-delay: 0s; }
.tab-button:nth-child(2) { animation-delay: 0.1s; }
.tab-button:nth-child(3) { animation-delay: 0.2s; }
.tab-button:nth-child(4) { animation-delay: 0.3s; }

.tab-button:hover {
    background-color: var(--secondary);
}

.tab-button.active {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-glow);
}

.tab-icon {
    font-size: 1.5rem;
}

.tab-label {
    font-weight: 500;
}

/* Grid */
.grid-container {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Portfolio Card */
.portfolio-card {
    position: relative;
    cursor: pointer;
    border-radius: 0.75rem;
	max-height: fit-content;
    background-color: var(--card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8) translateY(40px);
}

.portfolio-card.show {
    animation: filterIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.portfolio-card.hide {
    animation: filterOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.portfolio-card:hover {
    box-shadow: var(--shadow-glow);
}

.card-image-wrapper {
    aspect-ratio: 1;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .card-image {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, 
        hsla(240, 10%, 3.9%, 0.9) 0%, 
        hsla(240, 10%, 3.9%, 0.5) 50%, 
        transparent 100%);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .card-overlay {
    opacity: 1;
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    transform: translateY(20px);
    opacity: 1;
    transition: all 0.3s ease;
}

.portfolio-card:hover .card-content {
    transform: translateY(0);
    opacity: 1;
}

.card-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.card-description {
    color: var(--muted-foreground);
	font-size: 13px;
    margin-bottom: 0.75rem;
}

.card-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: hsla(263, 70%, 50%, 0.2);
    color: var(--primary-glow);
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes filterIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes filterOut {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .tabs-container {
        flex-direction: row;
        overflow-x: auto;
        min-width: auto;
    }
    
    .tab-button {
        white-space: nowrap;
    }
    
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .title {
        font-size: 2rem;
    }
}
