/* Projects Section */
:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --accent-color: #fd79a8;
    --dark-color: #2d3436;
    --light-color: #f5f6fa;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

.my-projects-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f9f9ff 0%, #f0f4ff 100%);
}

.projects-container {
    background-color: white;
    border-radius: 20px;
    padding: 4rem 2rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.projects-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #00ff87, #60efff);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tagline {
    display: inline-block;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    font-weight: 600;
}

.section-tagline::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-tagline .emoji {
    font-size: 1.5rem;
    margin-left: 0.8rem;
    vertical-align: middle;
    animation: bounce 1.5s infinite;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.highlight {
    background: linear-gradient(90deg, #00ff87, #60efff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Projects Grid */
.projects-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-link {
    text-decoration: none;
    color: inherit;
}

.project-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    aspect-ratio: 4/3;
    cursor: pointer;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    filter: brightness(0.95);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 60%);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
    transition: var(--transition);
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: var(--transition);
    opacity: 0;
}

.project-category {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(20px);
    transition: var(--transition);
    transition-delay: 0.05s;
    opacity: 0;
}

.project-hover-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transition: var(--transition);
}

.view-project {
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
}

.project-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 255, 135, 0.3), rgba(96, 239, 255, 0.3));
    opacity: 0;
    transition: var(--transition);
}

.project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-item:hover .project-image {
    transform: scale(1.1);
    filter: brightness(0.7);
}

.project-item:hover .project-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 40%);
}

.project-item:hover .project-title,
.project-item:hover .project-category {
    transform: translateY(0);
    opacity: 1;
}

.project-item:hover .project-hover-content {
    opacity: 1;
    top: 40%;
}

.project-item:hover .project-glow {
    opacity: 0.6;
}

/* View All Button */
.cta-container {
    text-align: center;
    margin-top: 2rem;
}

.view-projects-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(108, 92, 231, 0.4);
    position: relative;
    overflow: hidden;
    gap: 0.5rem;
}

.view-projects-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.6s;
}

.view-projects-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.6);
}

.view-projects-btn:hover::before {
    left: 100%;
}

/* Animations */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .my-projects-section {
        padding: 5rem 1.5rem;
    }
}

@media (max-width: 992px) {
    .projects-container {
        padding: 3rem 1.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .projects-showcase {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .my-projects-section {
        padding: 4rem 1rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section-tagline {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .projects-showcase {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }

    .section-tagline::after {
        width: 50px;
        height: 3px;
        bottom: -10px;
    }

    .projects-showcase {
        grid-template-columns: 1fr;
    }

    .view-projects-btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
}