/* ProjeHome Apartman Yönetim Sistemi - Ana Site CSS */

/* Genel Stiller */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Navbar Stiller */
.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
}

.navbar-brand img.site-logo {
    margin-right: 15px;
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img.site-logo {
    transform: scale(1.05);
}

.navbar-dark {
    background-color: #2D1B36 !important;
}

/* Hero Section */
.hero-section {
    background-color: #f8f9fa;
    padding: 60px 0;
    margin-bottom: 30px;
}

/* Card Stiller */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Footer Stiller */
footer {
    background-color: #2D1B36;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 50px;
}

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

footer a:hover {
    color: #f8f9fa;
    text-decoration: underline;
}

/* Slider Stiller */
.carousel-item {
    height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.carousel-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.carousel-caption {
    bottom: 100px;
    z-index: 2;
}

/* Hizmet Kartları */
.service-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #2D1B36;
}

/* Testimonial Kartları */
.testimonial-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Image Container for About Page */
.image-container {
    margin: 0 !important;
    padding: 0 !important;
}

.image-container img {
    margin: 0 !important;
    padding: 0 !important;
}

/* Modern Referanslar Grid Sistemi */
.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

/* Modern Referans Kartları */
.modern-reference-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* Removed card hover effect */

.modern-reference-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

/* Removed card hover effect for gradient bar */

/* Logo Bölümü */
.reference-logo-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    min-height: 100px;
    padding: 10px;
    overflow: hidden;
}

.reference-logo {
    object-fit: contain;
    filter: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Removed hover effect - logos stay colorful always */

.reference-logo-placeholder {
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    font-size: calc(0.8rem + 0.5vw);
    min-width: 60px;
    min-height: 60px;
}

/* Removed placeholder hover effect */

/* Bilgi Bölümü */
.reference-info-section {
    text-align: center;
}

.reference-company-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
}

.modern-reference-card:hover .reference-company-name {
    color: #667eea;
}

.reference-company-desc {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.reference-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 2px solid #667eea;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: transparent;
}

.reference-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.reference-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.modern-reference-card:hover .reference-overlay {
    opacity: 1;
}

/* Responsive Ayarlar */
@media (max-width: 768px) {
    .carousel-item {
        height: 350px;
    }
    
    .carousel-caption {
        bottom: 50px;
    }
    
    .carousel-caption h1 {
        font-size: 1.8rem;
    }
    
    /* Referanslar için tablet ayarları */
    .reference-card {
        height: auto;
        min-height: 120px;
        max-width: 100%;
        flex-direction: row-reverse;
        border: 1px solid #e0e0e0;
        border-radius: 12px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }
    
    .reference-image-container {
        width: 140px;
        min-width: 140px;
        height: 140px;
        padding: 12px;
        border-right: 1px solid #e0e0e0;
        border-bottom: none;
        background-color: #f8f9fa;
    }
    
    .reference-image {
        max-width: 100px;
        max-height: 100px;
    }
    
    .reference-content {
        padding: 15px;
        text-align: left;
    }
    
    .reference-title {
        font-size: 0.9rem;
        margin-bottom: 8px;
        text-align: left;
    }
    
    .reference-description {
         font-size: 0.75rem;
         padding: 10px 12px;
         margin: 0;
         border-radius: 6px;
         overflow: visible;
         display: block;
         text-align: left;
     }
     
     .reference-description::before {
         height: 1px;
     }
    
    .reference-placeholder {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .reference-placeholder::before {
        font-size: 1rem;
    }
    
    .reference-placeholder::after {
        font-size: 0.45rem;
        bottom: 2px;
    }
}

/* Orta Ekranlar (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .references-grid {
        grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
        gap: 2rem;
    }
    
    .modern-reference-card {
        padding: 1.8rem;
    }
    
    .reference-logo-section {
        height: 90px;
        margin-bottom: 1.3rem;
    }
    
    .reference-logo {
        /* Removed max-width and max-height to allow dynamic sizing */
    }
    
    .reference-logo-placeholder {
        width: 70px;
        height: 70px;
        font-size: 1.3rem;
    }
    
    .reference-company-name {
        font-size: 1.2rem;
    }
    
    .reference-company-desc {
        font-size: 0.9rem;
    }
}

/* Büyük Ekranlar (1025px ve üzeri) */
@media (min-width: 1025px) {
    .references-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 2.5rem;
    }
    
    .modern-reference-card {
        padding: 2.5rem;
    }
    
    .reference-logo-section {
        height: 120px;
        margin-bottom: 2rem;
    }
    
    .reference-logo {
        /* Removed max-width and max-height to allow dynamic sizing */
    }
    
    .reference-logo-placeholder {
        width: 90px;
        height: 90px;
        font-size: 1.8rem;
    }
    
    .reference-company-name {
        font-size: 1.4rem;
    }
    
    .reference-company-desc {
        font-size: 1rem;
    }
}

/* Tablet Ekranlar (577px - 768px) */
@media (min-width: 577px) and (max-width: 768px) {
    .references-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .modern-reference-card {
        padding: 1.5rem;
    }
    
    .reference-logo-section {
        min-height: 80px;
        margin-bottom: 1rem;
        padding: 8px;
    }
    
    .reference-logo {
        /* Removed max-width and max-height to allow dynamic sizing */
    }
    
    .reference-logo-placeholder {
        min-width: 50px;
        min-height: 50px;
        font-size: calc(0.7rem + 0.3vw);
    }
    
    .reference-company-name {
        font-size: 1.1rem;
    }
    
    .reference-company-desc {
        font-size: 0.85rem;
    }
}

/* Mobil Ekranlar (max-width: 576px) */
@media (max-width: 576px) {
    .references-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .modern-reference-card {
        padding: 1rem;
        border-radius: 15px;
    }
    
    .reference-logo-section {
        min-height: 60px;
        margin-bottom: 0.8rem;
        padding: 5px;
    }
    
    .reference-logo {
        /* Removed max-width and max-height to allow dynamic sizing */
    }
    
    .reference-logo-placeholder {
        min-width: 40px;
        min-height: 40px;
        font-size: calc(0.6rem + 0.2vw);
    }
    
    .reference-company-name {
        font-size: 1rem;
    }
    
    .reference-company-desc {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }
    
    .reference-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Form Styles */
.form-control {
    border: 2px solid #333333 !important;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #000000 !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.25) !important;
    outline: none;
}

.form-control.is-invalid {
    border-color: #333333 !important;
}

.form-control:invalid {
    border-color: #333333 !important;
}

.was-validated .form-control:invalid {
    border-color: #333333 !important;
}

.was-validated .form-control:valid {
    border-color: #333333 !important;
}

.form-select {
    border: 2px solid #333333 !important;
}

.form-select:focus {
    border-color: #000000 !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.25) !important;
}

.form-select.is-invalid {
    border-color: #333333 !important;
}

.form-select:invalid {
    border-color: #333333 !important;
}

input, select, textarea {
    border: 2px solid #333333 !important;
}

input:focus, select:focus, textarea:focus {
    border-color: #000000 !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.25) !important;
}

input.is-invalid, select.is-invalid, textarea.is-invalid {
    border-color: #333333 !important;
}

input:invalid, select:invalid, textarea:invalid {
    border-color: #333333 !important;
}