.hero.portfolio-hero {
    min-height: 10vh; 
    background: var(--background-color);
}

.portfolio-filter {
    position: sticky;
    top: 80px; /* Adjust this value based on your navbar height */
    z-index: 100;
    background: var(--background-color);
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem 2rem;
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 20px 20px; */
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.filter-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 30px;
    background: var(--background-hover);
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.3);
}

.portfolio-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    padding: 2rem;
    /* scroll-margin-top: 1%; Adjust this value for desired offset */
}

.project-card {
    background: var(--background-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.project-media {
    position: relative;
    overflow: hidden;
}

.project-media video {
    display: block;
    width: 100%;
    height: auto;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
    opacity: 1;
}

.play-button {
    width: 64px;
    height: 64px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    transform: scale(1);
}

.play-button svg { color: #fff; }

.project-media:hover .play-button {
    transform: scale(1.06);
}

.play-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
}

@media (max-width: 480px) {
    .play-button { width: 48px; height: 48px; }
    .play-button svg { width: 20px; height: 20px; }
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 25px;
    color: white;
    font-size: 35px;
    cursor: pointer;
}

#modalVideo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.project-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.tech-stack span {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.skills-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    scroll-margin-top: 100px; /* Adjust this value for desired offset */
}

.skills-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    background: var(--background-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.skill-category {
    background: var(--background-color);
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.skill-list {
    list-style: none;
    padding: 0;
}

.skill-list li {
    padding: 0.75rem 0;
    color: var(--text-color);
    font-size: 1.1rem;
    border-bottom: 1px solid var(--background-hover);
}

.skill-list li:last-child {
    border-bottom: none;
}

/* CTA Section */
.cta-section {
    max-width: 800px;
    margin: 4rem auto;
    padding: 3rem 2rem;
    text-align: center;
    background: var(--background-color);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    background: var(--background-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    background: var(--primary-color);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 968px) {
    .skills-grid {
        grid-template-columns: repeat(1, 1fr);
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .project-info {
        padding: 1.5rem;
    }
    
    .filter-buttons {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .cta-section {
        margin: 2rem 1rem;
        padding: 2rem 1rem;
    }
}