body {
    background: linear-gradient(to right, #000000, #15001a, #00332a);
    background-attachment: fixed;
    min-height: 100vh;
    color: #f0f0f0;
    font-family: 'Poppins', sans-serif;
}

::selection {
    background: #555555;
    color: #ffffff;
}

.projects-container {
    padding: 120px 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.page-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #d500f9;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(213, 0, 249, 0.6), 0 0 20px rgba(213, 0, 249, 0.4);
    animation: slideUp 1s ease-out both;
}

.floating-text {
    display: inline-block;
    animation: floatTitle 3s ease-in-out infinite 1s;
}

@keyframes floatTitle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.page-description {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: #e0e0e0;
    max-width: 100%;
    margin-bottom: 40px;
    line-height: 1.8;
    text-align: justify;
    animation: slideUp 1s ease-out both;
    animation-delay: 0.5s;
}

.highlight {
    color: #00ffd5;
    font-weight: 600;
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
    padding-bottom: 50px;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.project-card.show {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(213, 0, 249, 0.4), 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 0 1px #d500f9;
    border-color: #d500f9;
    background: rgba(213, 0, 249, 0.1);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.project-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    color: #00ffd5;
    margin: 0;
    font-weight: 700;
    white-space: normal;
}

.tech-stack {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tech-tag {
    background: transparent;
    color: #d500f9;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    border: 2px solid #d500f9;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    cursor: default;
}

.tech-tag:hover {
    background: #d500f9;
    color: #fff;
    box-shadow: 0 0 10px rgba(213, 0, 249, 0.5);
}

.view-btn {
    display: inline-block;
    margin-top: 20px;
    margin-left: 10px;
    padding: 12px 25px;
    background: #d500f9;
    color: #fff;
    border: 2px solid #d500f9;
    border-radius: 30px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background: transparent;
    color: #d500f9;
    box-shadow: 0 0 15px rgba(213, 0, 249, 0.4);
    transform: translateY(-2px);
}

.demo-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background: transparent;
    color: #00ffd5;
    border: 2px solid #00ffd5;
    border-radius: 30px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.demo-btn:hover {
    background: #00ffd5;
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 213, 0.4);
    transform: translateY(-2px);
}

.view-btn i, .demo-btn i {
    margin-left: 8px;
}

.project-image {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.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-desc {
    font-family: 'Poppins', sans-serif;
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

/* Responsive Design */
@media screen and (max-width: 1100px) {
    .projects-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media screen and (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-description {
        font-size: 1rem;
        line-height: 1.6;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .project-header h3 {
        white-space: normal;
        font-size: 1.3rem;
    }

    .tech-stack {
        flex-wrap: wrap;
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .projects-container {
        padding: 100px 15px 30px;
    }

    .page-title {
        font-size: 2rem;
    }
    
    .page-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .project-card {
        padding: 20px;
    }

    .view-btn, .demo-btn {
        width: 100%;
        text-align: center;
        margin-left: 0;
        margin-top: 10px;
        display: block;
    }
}