/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; line-height: 1.6; color: #333; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Utilities */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 40px; font-size: 2rem; text-transform: uppercase; letter-spacing: 2px; }
.bg-light { background-color: #f4f4f4; }
.btn { display: inline-block; padding: 12px 30px; background: #333; color: #fff; border-radius: 5px; transition: 0.3s; }
.btn:hover { background: #555; }
.btn-dark { background: #000; border: none; cursor: pointer; }

/* Header */
#header { background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.1); position: fixed; width: 100%; top: 0; z-index: 1000; }
#header .container { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo h1 { font-size: 1.5rem; letter-spacing: 3px; }
.logo span { color: #e74c3c; } /* Milimetre kırmızısı */
.logo img {
    /* Kare olması için yükseklik ve genişliği eşitliyoruz */
    height: 60px;  
    width: 60px;   
    
    /* Resim kutuya sığsın ama asla kesilmesin/kırpılmasın (KİLİT NOKTA) */
    object-fit: contain; 
    
    /* Logoyu ortalamak için (Eğer png transparan ise güzel durur) */
    object-position: center; 
    
    display: block;
}
nav ul { display: flex; }
nav ul li { margin-left: 20px; }
nav ul li a { font-weight: 500; font-size: 0.9rem; text-transform: uppercase; }

.hero { 
    height: 100vh; 
    /* Önce resmin üzerine hafif siyah bir perde (overlay) atıyoruz ki yazılar okunsun */
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/banner.jpg');
    
    /* Resmi ekranın ortasına hizala ve boşluk kalırsa tekrar etme */
    background-position: center;
    background-repeat: no-repeat;
    
    /* Resmi ekran boyutuna göre otomatik sığdır (Cover) */
    background-size: cover;
    
    /* Flexbox ile içindeki yazıları tam ortaya getir */
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: #fff; 
    
    /* Sayfa kaydırılsa bile resim arkada sabit kalsın (Parallax Efekti - İsterseniz ekleyin) */
    background-attachment: fixed;
}
.hero h2 { font-size: 3rem; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; }

/* Services Grid */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.service-card { background: #fff; padding: 30px; text-align: center; border-radius: 8px; transition: transform 0.3s; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.service-card:hover { transform: translateY(-10px); }
.service-card i { font-size: 3rem; color: #333; margin-bottom: 20px; }

/* Contact */
.contact-info { display: flex; justify-content: space-around; margin-bottom: 40px; flex-wrap: wrap; }
.contact-info .item { text-align: center; margin: 10px; }
.contact-form { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.contact-form input, .contact-form textarea { padding: 15px; border: 1px solid #ddd; border-radius: 5px; font-family: inherit; }

/* Projects Section Styling */

/* Grid Yapısı: Hizmetler ile aynı mantıkta ama görsel odaklı */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Kartın Kendisi */
.project-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden; /* Resim taşarsa gizle (köşeleri yuvarlatmak için şart) */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

/* Hover Efekti: Üzerine gelince hafif yukarı kalksın */
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Proje Resmi Ayarları */
.project-card .card-img img {
    width: 100%;
    height: 220px; /* Tüm resimler aynı yükseklikte olsun */
    object-fit: cover; /* Resim oranını bozmadan alanı doldur */
    display: block;
}

/* İçerik Alanı */
.project-card .card-content {
    padding: 25px;
}

.project-card h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 1.25rem;
}

.project-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Detay Butonu Tasarımı */
.btn-detail {
    display: inline-block;
    color: #e74c3c; /* Sitenizin vurgu rengi */
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.btn-detail i {
    margin-left: 5px;
    transition: margin-left 0.3s;
}

.btn-detail:hover {
    color: #c0392b;
}

/* Butona gelince ok işareti sağa kaysın (Mikro-animasyon) */
.btn-detail:hover i {
    margin-left: 10px;
}

/* Footer */
footer { background: #333; color: #fff; text-align: center; padding: 20px 0; }