/* Custom Styles for Demo Projects Page */

/* CSS Variables for easy customization */
:root {
    --background-overlay-opacity: 0.8; /* Arka plan koyuluğu - 0.0 (şeffaf) ile 1.0 (tamamen siyah) arası */
}

/* Global Background */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Background Container */
.background-container {
    background: url('../img/bg.png') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    min-height: 100vh;
    width: 100%;
}

/* Overlay for better readability - Artık CSS değişkeni ile ayarlanabilir */
.background-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, var(--background-overlay-opacity));
    z-index: 0;
}

/* Header Styles */
header {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 10;
}

.logo-container {
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

/* Description Section */
.bg-light {
    background: transparent !important;
    margin: 20px 0;
}

/* Card Styles - Glass Effect Only Here */
.demo-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.demo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4) !important;
    background: rgba(255, 255, 255, 0.25);
}

.card-img-top-container {
    position: relative;
    overflow: hidden;
}

.card-img-top {
    transition: transform 0.3s ease;
    height: 250px;
    object-fit: cover;
}

.demo-card:hover .card-img-top {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.demo-card:hover .card-overlay {
    opacity: 1;
}

/* Demo'yu Görüntüle butonu için özel stil (her iki section'da da geçerli) */
.card-overlay .btn {
    background: none !important;
    border: none !important;
    color: #fff !important;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: none !important;
    padding: 0;
    transition: color 0.2s, transform 0.2s;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.card-overlay .btn:hover, .card-overlay .btn:focus {
    color: #fff !important; /* Altın sarısı vurgulu hover */
    text-decoration: underline;
    transform: scale(1.08);
    background: none !important;
    border: none !important;
}

/* Tech Stack Badges */
.tech-stack {
    margin-top: 15px;
}

.tech-stack .badge {
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Footer Styles */
footer {
    background: transparent !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 10;
}

.footer-section {
    padding: 10px 0;
}

.social-links a {
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: #007bff !important;
}

.footer-logo {
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

/* Section spacing */
section {
    margin: 30px 0;
    position: relative;
    z-index: 10;
}

/* Container adjustments for better spacing */
.container {
    position: relative;
    z-index: 10;
}

/* Text color improvements for better readability */
.text-white {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Card body improvements */
.card-body {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
}

.card-title {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.card-text {
    color: rgba(255, 255, 255, 0.8) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .demo-card {
        margin-bottom: 20px;
    }
    
    .footer-section {
        text-align: center !important;
        margin-bottom: 20px;
    }
    
    .social-links {
        margin-top: 15px;
    }
    
    .bg-light {
        margin: 10px 0;
    }
    
    section:nth-of-type(2) .demo-card {
        height: auto !important;
        min-height: unset !important;
        padding-bottom: 0 !important;
    }
    section:nth-of-type(2) .card-img-top-container {
        height: 180px !important;
        min-height: unset !important;
    }
    section:nth-of-type(2) .card-img-top {
        height: 100% !important;
        min-height: unset !important;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.demo-card {
    animation: fadeInUp 0.6s ease forwards;
}

.demo-card:nth-child(2) {
    animation-delay: 0.2s;
}

.demo-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* Loading animation for images */
.card-img-top {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Custom button styles */
.btn-custom {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    color: white;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    background: linear-gradient(45deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

/* Additional glass morphism effects */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Badge color improvements */
.badge.bg-primary {
    background: rgba(0, 123, 255, 0.8) !important;
}

.badge.bg-success {
    background: rgba(40, 167, 69, 0.8) !important;
}

.badge.bg-info {
    background: rgba(23, 162, 184, 0.8) !important;
}

.badge.bg-warning {
    background: rgba(255, 193, 7, 0.8) !important;
}

.badge.bg-danger {
    background: rgba(220, 53, 69, 0.8) !important;
}

.badge.bg-secondary {
    background: rgba(108, 117, 125, 0.8) !important;
    color: white;
}

/* Section 2 için özel stiller - Sadece resimlerin görünmesi için */
section:nth-of-type(2) .card-body {
    display: none;
}

section:nth-of-type(2) .demo-card {
    height: auto;
}

section:nth-of-type(2) .card-img-top-container {
    height: 300px;
}

section:nth-of-type(2) .card-img-top {
    height: 100%;
    object-fit: cover;
} 