
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: "Poppins", Arial, sans-serif;
    color: #ffffff;
    background:
        radial-gradient(circle at top left, #00d4ff 0, transparent 30%),
        radial-gradient(circle at bottom right, #ff4ecd 0, transparent 28%),
        linear-gradient(135deg, #0f172a, #111827 55%, #020617);
    background-attachment: fixed;
    padding: 40px 8%;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* Main Details */
.project-details {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
    align-items: center;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.project-image img {
    width: 100%;
    height: 430px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.project-content {
    min-height: 20px;
}

.details-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn-primary,
.btn-secondary {
    padding: 13px 24px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn-primary {
    color: #06111f;
    background: linear-gradient(135deg, #67e8f9, #a7f3d0);
    box-shadow: 0 12px 30px rgba(103, 232, 249, 0.28);
}

.btn-secondary {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

/* Hero */
.project-hero {
    margin-top: 32px;
    padding: 45px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.project-hero-content h1 {
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.05;
    margin-bottom: 18px;
}

.project-hero-content p {
    max-width: 850px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 17px;
    line-height: 1.8;
}

.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.tech-badge {
    padding: 9px 15px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.20);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

/* Common Sections */
.gallery-section,
.features-section,
.related-projects {
    margin-top: 32px;
    padding: 34px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.gallery-section h2,
.features-section h2,
.related-projects h2 {
    font-size: 30px;
    margin-bottom: 24px;
}

/* Gallery */
.gallery-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.gallery-image {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.03);
}

/* Features */
.features-section ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    list-style: none;
}

.features-section li {
    padding: 16px 18px;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.10);
}

.features-section li::before {
    content: "✓";
    margin-right: 10px;
    color: #67e8f9;
    font-weight: 700;
}

/* GitHub Stats */
.github-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-top: 32px;
}

.github-card {
    text-align: center;
    padding: 30px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.github-card h3 {
    font-size: 34px;
    margin-bottom: 8px;
}

.github-card p {
    color: rgba(255, 255, 255, 0.72);
}

/* Related Projects */
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-card {
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.10);
    transition: 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.project-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.project-card h3 {
    padding: 16px;
    font-size: 18px;
}

/* Responsive */
@media (max-width: 900px) {
    body {
        padding: 24px 5%;
    }

    .project-details,
    .github-stats,
    .features-section ul,
    .gallery-slider,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-image img {
        height: 300px;
    }

    .project-hero,
    .gallery-section,
    .features-section,
    .related-projects {
        padding: 26px;
    }
}

@media (max-width: 520px) {
    body {
        padding: 18px;
    }

    .project-details {
        padding: 18px;
    }

    .details-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .project-image img,
    .gallery-image {
        height: 220px;
    }
}
