@import url(https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap);
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Darumadrop+One&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    background-color: #f7fafc;
    color: #2d3748;
    font-family: 'Poppins', sans-serif;
}

/* Navigation */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: bold;
    color: #4f46e5;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: #1f2937;
    text-decoration: none;
}

.nav-links a:hover {
    color: #4f46e5;
}

.nav-toggle {
    display: none;
    color: #4b5563;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

@media (min-width: 768px) {
    .main-content {
        padding: 3rem 1rem;
    }
}

/* Back Button */
.back-button {
    display: inline-flex;
    align-items: center;
    color: #4f46e5;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 2rem;
}

.back-button:hover {
    color: #3730a3;
}

.back-button i {
    margin-right: 0.5rem;
    transition: transform 0.2s ease;
}

.back-button:hover i {
    transform: translateX(-3px);
}

/* Project Header */
.project-header {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .project-header {
        flex-direction: row;
    }
}

.project-image-container {
    width: 100%;
}

@media (min-width: 768px) {
    .project-image-container {
        width: 50%;
    }
}

@media (min-width: 1024px) {
    .project-image-container {
        width: 40%;
    }
}

.project-image {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-image:hover {
    transform: scale(1.02);
}

.project-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.project-info {
    font-size: .8rem;
    width: 100%;
}

@media (min-width: 768px) {
    .project-info {
        width: 50%;
    }
}

@media (min-width: 1024px) {
    .project-info {
        width: 60%;
    }
}

.project-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .project-title {
        font-size: 2rem;
    }
}

.project-description {
    color: #4b5563;
    margin-bottom: 1.5rem;
}

/* Project Meta */
.project-meta {
    font-size: .8rem;
    margin-bottom: 1.5rem;
}

.meta-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.75rem;
    text-wrap: wrap;
    width: 100%;
}

.meta-info {
    color: #6b7280;
    margin-right: 1rem;
}

.meta-info i {
    margin-right: 0.5rem;
}

.meta-link {
    color: #4f46e5;
    text-decoration: none;
    margin-left: 0.25rem;
    width: 100%;
    text-wrap: wrap;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    font-size: .85rem;
}

.meta-link:hover {
    text-decoration: underline;
}

/* Tech Stack */
.tech-stack {
    margin-bottom: 1.5rem;
}

.tech-stack-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background-color: #e0e7ff;
    color: #4f46e5;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.tech-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Project Links */
.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-primary {
    background-color: #4f46e5;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: #3730a3;
}

.btn-primary i {
    margin-right: 0.5rem;
}

.btn-secondary {
    border: 1px solid #4f46e5;
    color: #4f46e5;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.2s ease;
}

.btn-secondary:hover {
    background-color: #f5f3ff;
}

.btn-secondary i {
    margin-right: 0.5rem;
}

/* Project Details */
.project-details {
    max-width: 896px;
    max-width: 1280px;
    font-size: .8rem;
    margin: 0 auto;
}

.section-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.prose p {
    margin-bottom: 1rem;
}

/* Challenges & Solutions */
.challenge-card {
    padding: .5rem 1.25rem;
    border-radius: 0.5rem;
    font-size: .8rem;
    margin-bottom: .5rem;
}

.challenge-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #4f46e5;
    margin-bottom: 0.5rem;
}

.challenge-solution {
    margin-top: 0.5rem;
}

.challenge-solution span {
    font-weight: 500;
}

/* Key Features */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-card {
    background-color: #ffffff;
    padding: 1.25rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, -\n0.1);
    border: 1px solid #f3f4f6;
}

.feature-icon {
    color: #4f46e5;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-description {
    color: #4b5563;
    font-size: .8rem;
}

/* Screenshots */
.screenshot-container {
    display: flex;
    overflow-x: auto;
    padding-bottom: 1rem;
     gap: 1rem;
}

.screenshot-container::-webkit-scrollbar {
    height: 6px;
}

.screenshot-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.screenshot-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.screenshot-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.screenshot {
    width: fit-content;
    height: auto;
    max-height: 350px;
    object-fit: contain;
}

@media (min-width: 640px) {
    /*   .screenshot {
        width: 50%;
    } */
}

@media (min-width: 768px) {
    /*   .screenshot {
        width: 33.33%;
    } */
}

@media (min-width: 1024px) {
    /*   .screenshot {
        width: 25%;
    } */
}

.screenshot img {
    width: fit-content;
    height: auto;
    max-height: 350px;
    object-fit:contain;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Related Projects */
.related-projects {
    background-color: #f3f4f6;
    padding: 3rem 1rem;
}

.related-projects-container {
    max-width: 1200px;
    margin: 0 auto;
}

.related-projects-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    text-align: center;
}

.related-projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .related-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .related-projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
}

.project-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.project-card img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
}

.project-card-content {
    padding: 1.25rem;
}

.project-card-title {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.project-card-description {
    color: #4b5563;
    margin-bottom: 1rem;
}

.project-card-link {
    color: #4f46e5;
    font-weight: 500;
    text-decoration: none;
}

.project-card-link:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: #1f2937;
    color: #ffffff;
    padding: 3rem 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-section-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-description {
    color: #9ca3af;
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links li a {
    color: #9ca3af;
    text-decoration: none;
}

.footer-links li a:hover {
    color: #ffffff;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-social a {
    color: #9ca3af;
    font-size: 1.25rem;
    text-decoration: none;
}

.footer-social a:hover {
    color: #ffffff;
}

.footer-email {
    color: #9ca3af;
}

.footer-bottom {
    border-top: 1px solid #374151;
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
}