  /* ---------- TEMEL ---------- */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: #0f0f1a;
            color: #e0e0e0;
            min-height: 100vh;
            padding: 30px 20px;
        }

        .container {
            max-width: 1200px;
            width: 100%;
            margin: 0 auto;
        }

        /* ---------- BAŞLIK ---------- */
        header {
            text-align: center;
            margin-bottom: 50px;
            padding-bottom: 30px;
            border-bottom: 2px solid #2a2a3e;
            position: relative;
        }

        header .back-link {
            position: absolute;
            left: 0;
            top: 10px;
            color: #6c5ce7;
            text-decoration: none;
            font-size: 0.95rem;
            transition: color 0.3s;
        }

        header .back-link:hover {
            color: #a29bfe;
        }

        header h1 {
            font-size: 2.8rem;
            font-weight: 300;
            background: linear-gradient(135deg, #6c5ce7, #00b894);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: 2px;
        }

        header p {
            color: #8888aa;
            font-size: 1.1rem;
            margin-top: 8px;
            letter-spacing: 1px;
        }

        /* ---------- FİLTRE ---------- */
        .filters {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            justify-content: center;
            margin-bottom: 40px;
        }

        .filters button {
            padding: 8px 24px;
            border: 1px solid #2a2a3e;
            border-radius: 30px;
            background: transparent;
            color: #8888aa;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 0.9rem;
            font-family: inherit;
        }

        .filters button:hover {
            border-color: #6c5ce7;
            color: #fff;
        }

        .filters button.active {
            background: linear-gradient(135deg, #6c5ce7, #00b894);
            border-color: transparent;
            color: #fff;
        }

        /* ---------- PROJE KARTLARI ---------- */
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
            gap: 25px;
            margin-bottom: 40px;
        }

        .project-card {
            background: #1a1a2e;
            border-radius: 20px;
            border: 1px solid #2a2a3e;
            padding: 25px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            cursor: pointer;
        }

        .project-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(108, 92, 231, 0.05), rgba(0, 184, 148, 0.05));
            opacity: 0;
            transition: opacity 0.3s;
        }

        .project-card:hover::before {
            opacity: 1;
        }

        .project-card:hover {
            transform: translateY(-6px);
            border-color: #6c5ce7;
            box-shadow: 0 15px 35px rgba(108, 92, 231, 0.1);
        }

        .project-card .icon {
            font-size: 2.8rem;
            margin-bottom: 15px;
            display: block;
        }

        .project-card .tag {
            display: inline-block;
            padding: 3px 14px;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 12px;
            margin-right: 4px;
        }

        .tag.delphi { background: #6c5ce7; color: #fff; }
        .tag.web { background: #00b894; color: #fff; }
        .tag.mobil { background: #fdcb6e; color: #2d3436; }
        .tag.oyun { background: #e17055; color: #fff; }
        .tag.kutuphane { background: #74b9ff; color: #2d3436; }
        .tag.veritabani { background: #fd79a8; color: #fff; }
        .tag.masaustu { background: #a29bfe; color: #fff; }
        .tag.arac { background: #55efc4; color: #2d3436; }

        .project-card h3 {
            font-weight: 400;
            font-size: 1.3rem;
            margin-bottom: 8px;
            color: #ffffff;
        }

        .project-card .desc {
            color: #8888aa;
            font-size: 0.95rem;
            line-height: 1.7;
            margin-bottom: 15px;
        }

        .project-card .tech {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 15px;
        }

        .project-card .tech span {
            background: #0f0f1a;
            padding: 2px 12px;
            border-radius: 12px;
            font-size: 0.7rem;
            color: #8888aa;
            border: 1px solid #2a2a3e;
        }

        .project-card .card-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;
        }

        .project-card .card-footer .resim-sayisi {
            font-size: 0.75rem;
            color: #555577;
        }

        .project-card .card-footer .detay-btn {
            padding: 6px 20px;
            border-radius: 20px;
            background: linear-gradient(135deg, #6c5ce7, #00b894);
            color: #fff;
            border: none;
            cursor: pointer;
            font-size: 0.85rem;
            font-family: inherit;
            transition: all 0.3s;
        }

        .project-card .card-footer .detay-btn:hover {
            transform: scale(1.04);
            box-shadow: 0 6px 20px rgba(108, 92, 231, 0.25);
        }

        /* ---------- MODAL ---------- */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            justify-content: center;
            align-items: center;
            z-index: 9999;
            padding: 30px 20px;
        }

        .modal-overlay.show {
            display: flex;
        }

        .modal-content {
            background: #1a1a2e;
            border-radius: 28px;
            border: 1px solid #2a2a3e;
            max-width: 800px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            padding: 35px;
            position: relative;
        }

        .modal-content::-webkit-scrollbar {
            width: 6px;
        }

        .modal-content::-webkit-scrollbar-track {
            background: #0f0f1a;
            border-radius: 10px;
        }

        .modal-content::-webkit-scrollbar-thumb {
            background: #6c5ce7;
            border-radius: 10px;
        }

        .modal-close {
            position: sticky;
            top: 0;
            float: right;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid #2a2a3e;
            color: #e0e0e0;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            font-size: 1.4rem;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
            margin-bottom: 10px;
        }

        .modal-close:hover {
            background: #c0392b;
            border-color: #e74c3c;
        }

        .modal-content .modal-icon {
            font-size: 3.5rem;
            margin-bottom: 10px;
        }

        .modal-content .modal-baslik {
            font-size: 2rem;
            font-weight: 300;
            color: #fff;
            margin-bottom: 8px;
        }

        .modal-content .modal-kategori {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 15px;
        }

        .modal-content .modal-desc {
            color: #b0b0c8;
            font-size: 1rem;
            line-height: 1.8;
            margin-bottom: 20px;
        }

        .modal-content .modal-tech {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 20px;
        }

        .modal-content .modal-tech span {
            background: #0f0f1a;
            padding: 4px 16px;
            border-radius: 16px;
            font-size: 0.8rem;
            color: #8888aa;
            border: 1px solid #2a2a3e;
        }

        /* ---------- MODAL GALERİ ---------- */
        .modal-gallery {
          display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;        /* ← EKLE */
    overflow: visible;      /* ← EKLE */
        }

        .modal-gallery .gallery-thumb {
            width: 100%;
            aspect-ratio: 4/3;
            object-fit: cover;
            border-radius: 12px;
            border: 2px solid #2a2a3e;
            transition: all 0.3s;
            cursor: pointer;
        }

        .modal-gallery .gallery-thumb:hover {
            transform: scale(1.04);
            border-color: #6c5ce7;
            box-shadow: 0 6px 20px rgba(108, 92, 231, 0.2);
        }

        .modal-gallery .no-image {
            grid-column: 1/-1;
            text-align: center;
            color: #555577;
            padding: 30px;
            background: #0f0f1a;
            border-radius: 12px;
            border: 1px dashed #2a2a3e;
        }

        /* ---------- MODAL LİNKLER ---------- */
        .modal-links {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            margin-top: 15px;
            padding-top: 20px;
            border-top: 1px solid #2a2a3e;
        }

        .modal-links a {
            padding: 8px 22px;
            border-radius: 25px;
			font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
            text-decoration: none;
			font-weight: 500;
			text-decoration: none;
            font-size: 0.9rem;
            transition: all 0.3s;
            display: inline-flex;
            align-items: center;
            gap: 6px;
			transition: all 0.3s ease;
    line-height: 1.4;
        }

        .modal-links .github {
            background: #2a2a3e;
            color: #e0e0e0;
            border: 1px solid #3a3a5e;
        }

        .modal-links .github:hover {
            background: #3a3a5e;
            transform: scale(1.04);
        }

        .modal-links .demo {
            background: linear-gradient(135deg, #6c5ce7, #00b894);
            color: #ffffff !important;
        }

        .modal-links .demo:hover {
            transform: scale(1.04);
            box-shadow: 0 6px 20px rgba(108, 92, 231, 0.25);
        }

        .modal-links .download {
            background: #00b894;
            color: #fff;
        }

        .modal-links .download:hover {
            transform: scale(1.04);
            box-shadow: 0 6px 20px rgba(0, 184, 148, 0.25);
        }

        /* ---------- LIGHTBOX ---------- */
        .modal-lightbox {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.92);
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            justify-content: center;
            align-items: center;
            z-index: 10000;
            padding: 30px;
        }

        .modal-lightbox.show {
            display: flex;
        }

        .modal-lightbox .lightbox-close {
            position: absolute;
            top: 25px;
            right: 30px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid #2a2a3e;
            color: #fff;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            font-size: 1.8rem;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10001;
        }
		
		.lightbox-caption {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    padding: 12px 28px;
    border-radius: 16px;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 80%;
    text-align: center;
    line-height: 1.5;
    z-index: 10002;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: none;  /* Başlangıçta gizli */
}

@media screen and (max-width: 700px) {
    .lightbox-caption {
        bottom: 25px;
        padding: 10px 20px;
        font-size: 0.85rem;
        max-width: 90%;
    }
}

        .modal-lightbox .lightbox-close:hover {
            background: #c0392b;
            border-color: #e74c3c;
            transform: scale(1.05);
        }

        .modal-lightbox img {
            max-width: 90%;
            max-height: 85vh;
            object-fit: contain;
            border-radius: 16px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.05);
        }
		
		.modal-kategori {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.modal-kategori .tag {
    display: inline-block;
    padding: 4px 16px !important;
    border-radius: 20px !important;  /* ✅ YUVARLAK KÖŞE */
    font-size: 0.75rem !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    line-height: 1.4;
}

        /* ---------- FOOTER ---------- */
        footer {
            margin-top: 50px;
            padding-top: 20px;
            border-top: 1px solid #2a2a3e;
            text-align: center;
            color: #555577;
            font-size: 0.9rem;
        }

        footer a {
            color: #6c5ce7;
            text-decoration: none;
        }

        /* ---------- RESPONSIVE ---------- */
        @media screen and (max-width: 700px) {
            header h1 { font-size: 2rem; }
            header .back-link { position: static; display: block; margin-bottom: 10px; }
            .projects-grid { grid-template-columns: 1fr; }
            .filters button { padding: 6px 16px; font-size: 0.8rem; }
            .modal-content { padding: 20px; }
            .modal-gallery { grid-template-columns: repeat(2, 1fr); }
            .modal-lightbox img { max-width: 95%; max-height: 70vh; }
            .modal-lightbox .lightbox-close { top: 15px; right: 15px; width: 40px; height: 40px; font-size: 1.4rem; }
        }

        @media screen and (max-width: 450px) {
            .modal-gallery { grid-template-columns: 1fr; }
            .modal-gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
            .project-card .card-footer { flex-direction: column; align-items: stretch; }
            .project-card .card-footer .detay-btn { width: 100%; text-align: center; }
        }