/* Container */
.container {
    max-width: 1200px;
    width: 95%;
    margin: auto;
    display: flex;
    gap: 2rem;
    padding: 2rem;
    position: relative;
}
/* Side Bar */
.side-bar {
    position: sticky;
    top: 2rem;
    background-color: #27272A;
    padding: 1.5rem;
    border-radius: 15px;
    min-width: 250px;
    height: fit-content;
    border: 2px solid transparent;
    transition: all 1s ease;
}

.side-bar:hover {
    border-color: #FFBE55;
    background-color: #323232;
}

/* Filter Section */
.filter-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-section h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Dropdown Styling */
.dropdown {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: #18181B;
    border: 1px solid rgba(255, 190, 85, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 1s ease;
}

.dropdown:hover, .dropdown:focus {
    border-color: #FFBE55;
    outline: none;
}

.dropdown option {
    background-color: #27272A;
    color: #fff;
    padding: 10px;
}

/* Tab Buttons */
.side-bar .tablinks {
    display: block;
    width: 100%;
    border: none;
    background: transparent;
    border-radius: 8px;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    color: #fff;
    cursor: pointer;
    transition: all 1s ease;
}

.side-bar .tablinks:hover {
    background-color: rgba(255, 190, 85, 0.1);
    color: #FFBE55;
}

.side-bar .tablinks.active {
    background-color: #FFBE55;
    color: #18181B;
}

/* Projects Content */
.projects-content {
    flex: 1;
    animation: fadeEffect 1s ease-in-out;
}

/* Projects Header */
.projects-header {
    text-align: left;
    margin-bottom: 2rem;
}

.projects-header h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.projects-header h1::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, #FFBE55, transparent);
}

.projects-header p {
    color: #ccc;
    font-size: 1.1rem;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    animation: fadeEffect 1.5s ease-in-out;
}

/* Project Card */
.project-card {
    background: #27272A;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    border: 2px solid transparent;
    height: 100%;
}

.project-card:hover {
    /*transform: translateY(-5px);*/
    border-color: #FFBE55;
    background: #323232;
}

/* Project Image */
.project-image {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

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

.project-card:hover .project-image img {
    transform: scale(1.05);
}

/* Project Overlay */
.project-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
    align-items: flex-end;
}

.brand-tag, .category-tag {
    padding: 0.4rem 1rem;
    background: rgba(0, 0, 0, 0.75);
    color: #FFBE55;
    border-radius: 20px;
    font-size: 0.8rem;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.project-card:hover .brand-tag,
.project-card:hover .category-tag {
    background: #FFBE55;
    color: #18181B;
}

/* Project Content */
.project-content {
    padding: 1.5rem;
    height: calc(100% - 200px); /* Subtract image height */
    display: flex;
    flex-direction: column;
}

.project-content h2 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.project-card:hover .project-content h2 {
    color: #FFBE55;
}

.project-content p {
    color: #ccc;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

/* Project Meta */
.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.tech-stack {
    display: flex;
    gap: 0.5rem;
}

.tech-stack span {
    padding: 0.3rem 0.8rem;
    background: rgba(255, 190, 85, 0.1);
    color: #FFBE55;
    border-radius: 15px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.project-card:hover .tech-stack span {
    background: #FFBE55;
    color: #18181B;
}

.view-project {
    color: #FFBE55;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.view-project i {
    transition: transform 0.3s ease;
}

.view-project:hover i {
    transform: translateX(5px);
}

/* Animations */
@keyframes fadeEffect {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .projects-header h1 {
        font-size: 2.2rem;
    }
    
    .project-image {
        height: 180px;
    }
    
    .project-content {
        height: calc(100% - 180px);
    }
}

@media screen and (max-width: 1024px) {
    .container {
        padding: 1.5rem;
    }
    
    .side-bar {
        min-width: 220px;
        padding: 1.2rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-header h1 {
        font-size: 2rem;
    }
    
    .project-content {
        padding: 1.2rem;
    }
    
    .project-content h2 {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 1rem;
    }
    
    .side-bar {
        position: relative;
        top: 0;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .filter-section {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }
    
    .projects-header h1 {
        font-size: 1.8rem;
    }
    
    .projects-header p {
        font-size: 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-card {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .project-image {
        height: 220px;
    }
    
    .project-content {
        height: calc(100% - 220px);
    }
    
    .project-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .tech-stack {
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0.8rem;
    }
    
    .side-bar {
        padding: 1rem;
    }
    
    .filter-section h3 {
        font-size: 1rem;
    }
    
    .dropdown {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .side-bar .tablinks {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .projects-header h1 {
        font-size: 1.6rem;
    }
    
    .projects-header p {
        font-size: 0.9rem;
    }
    
    .project-image {
        height: 180px;
    }
    
    .project-content {
        height: calc(100% - 180px);
        padding: 1rem;
    }
    
    .project-content h2 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .project-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .brand-tag, .category-tag {
        padding: 0.3rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .tech-stack span {
        padding: 0.2rem 0.6rem;
        font-size: 0.75rem;
    }
}
