:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --text-light: #f8f9fa;
    --text-gray: #adb5bd;
    --border-color: #2c2c2c;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Animasyonlu Metin */
.animated-text {
    animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Section Title */
.section-title {
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
}

/* Hero Section */
.hero-section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

/* Project Cards */
.project-card {
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

/* Project Cards - Kare resimler için güncellenen CSS */
.card-img-container {
    overflow: hidden;
    position: relative;
    padding-top: 100%; /* 1:1 oranını korumak için */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Kontrast için ince kenarlık eklendi */
}

.card-img-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .card-img-top {
    transform: scale(1.05);
}

.card-img-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    left: auto;
    bottom: auto;
    background: none;
}

/* Tech Tags */
.tech-tags {
    margin-top: 1rem;
}

.tech-tags .badge {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 50px;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 4rem 0;
    color: white;
}

.stat-card {
    padding: 2rem;
    text-align: center;
    border-radius: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Footer - Yeni Tasarım Stilleri */
.footer {
    background: linear-gradient(135deg, rgba(13, 13, 13, 0.9), rgba(8, 8, 8, 0.95));
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(106, 17, 203, 0.3);
    box-shadow: 0 -10px 25px -5px rgba(37, 117, 252, 0.1);
    position: relative;
    overflow: hidden;
    padding-top: 3rem;
    padding-bottom: 2rem;
    margin-top: 4rem;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(106, 17, 203, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(37, 117, 252, 0.15) 0%, transparent 40%);
    z-index: 0;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer h5 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    position: relative;
}

.footer h5::after {
    content: "";
    position: absolute;
    height: 3px;
    width: 40px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    bottom: -10px;
    left: 0;
    border-radius: 10px;
}

.footer p {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 1rem;
    line-height: 1.6;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer ul li a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    border-radius: 10px;
}

.footer ul li a:hover {
    color: #ffffff !important;
    transform: translateX(5px);
}

.footer ul li a:hover::after {
    width: 100%;
}

.footer .social-links a i {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.1rem;
    width: 20px;
    display: inline-block;
    text-align: center;
    transition: transform 0.3s ease;
}

.footer .social-links a:hover i {
    transform: scale(1.2);
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.footer .text-center p {
    font-size: 0.9rem;
    margin-bottom: 0;
    background: linear-gradient(90deg, #e0e0e0, #a0a0a0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

/* Footer için animasyonlu alt dalga efekti */


/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    border-radius: 1rem;
}

.empty-icon {
    font-size: 4rem;
    opacity: 0.5;
}

/* Project Detail Page */
.project-detail .project-header {
    margin-bottom: 2rem;
}

.featured-image img {
    width: 100%;
    border-radius: 0.75rem;
}

.project-sidebar .card {
    border-radius: 0.75rem;
}

.social-share .btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border-radius: 50%;
}

/* Responsive ayarlar - mobil cihazlarda kare resimler için */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .project-card {
        margin-bottom: 20px;
    }
    
    /* Kare oranı korumak için ayarlar mobil cihazlarda da aynı kalır */
}

/* Metin kontrast iyileştirmeleri */
.project-card .card-title {
    font-weight: 600;
    color: white;
}

.project-card .card-text {
    color: #e0e0e0;
}

.project-description p, 
.description-content {
    color: #f8f9fa;
}

/* Sağ taraftaki sidebar öğeleri için iyileştirmeler */
.project-sidebar .card-title {
    color: white;
    font-weight: 600;
}

.project-sidebar p {
    color: #e0e0e0;
}

/* Badge renkleri */
.badge.bg-secondary {
    background-color: #4a5568 !important;
    color: white;
}

.badge.bg-primary {
    background-color: #3b82f6 !important;
    color: white;
}

/* Detaylar butonları */
.btn-outline-primary {
    color: #3b82f6;
    border-color: #3b82f6;
}

.btn-outline-primary:hover {
    background-color: #3b82f6;
    color: white;
}

/* Hiyerarşi */
h1, h2, h3, h4, h5, h6 {
    color: white;
}

/* Ana sayfa metinleri için karanlık modda görünürlük */
.display-4, .lead, .section-title {
    color: var(--text-light);
}

/* Hero bölümü ve diğer alanların arka planlarını koyu yap */
.hero-section, .featured-projects, .related-projects {
    background-color: var(--bg-dark);
}

/* Logo parlaklık ayarı - dark mode için */
.navbar-brand img {
    height: 30px;
    vertical-align: middle;
    filter: brightness(1.8); /* Daha parlak görünüm */
    transition: all 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.20); /* Hover efekti */
}
/* Kategori butonları için stil */
.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.category-btn {
    margin: 4px;
    border-radius: 20px;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Duyarlı düzen düzeltmeleri */
@media (max-width: 767px) {
    .category-buttons {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .category-btn {
        flex: 0 0 auto;
    }
}