﻿/* Genel Stil Reset ve Font Tanımlaması */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #1A1A1A; /* Kömür Grisi Zemin */
    color: #FFFFFF; /* Saf Beyaz Metin */
    line-height: 1.6;
    position: relative; /* Video için gerekli */
    overflow-x: hidden; /* Yatay kaydırmayı engelle */
}

/* Renkler */
:root {
    --bg-color-transparent: rgba(26, 26, 26, 0.7); /* Daha şeffaf zemin */
    --text-color: #FFFFFF;
    --accent-color: #A00000; /* Bordo Kırmızı Vurgu */
    --overlay-color-item: rgba(26, 26, 26, 0.5); /* Proje görseli üzerine yarı saydam katman */
    --video-overlay-color: rgba(0, 0, 0, 0.6); /* Video üzerine daha koyu katman */
}

/* Video Arka Plan */
#bg-video {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2; /* İçeriğin arkasında kalması için */
    background-size: cover;
    background-color: #1A1A1A; /* Video yüklenmezse gösterilecek renk */
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--video-overlay-color); /* Video üzerine koyu, yarı saydam katman */
    z-index: -1; /* Video ile içerik arasında */
}

/* İçerik Katmanları (Video üstünde kalması için z-index) */
.main-header, .hero-section, .projects-section, .main-footer {
    position: relative;
    z-index: 1;
}


/* Header ve İletişim */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* İnce Beyaz Çizgi */
    background-color: var(--bg-color-transparent); /* Hafif şeffaf arka plan */
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
}

.contact-header .phone-number {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 18px;
}

/* Hero Section (Ana Başlık) */
.hero-section {
    padding: 100px 5% 80px;
    text-align: center;
    background-color: var(--bg-color-transparent); /* Hafif şeffaf arka plan */
    margin-bottom: 30px; /* Projeler arasına boşluk */
}

.main-title {
    font-size: 5vw; /* Responsive Başlık Boyutu */
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.1;
}

.subtitle {
    font-size: 18px;
    font-weight: 300;
    color: #CCCCCC;
    max-width: 600px;
    margin: 0 auto;
}

/* Projeler Bölümü */
.projects-section {
    padding: 50px 5%;
    text-align: center;
    background-color: var(--bg-color-transparent); /* Hafif şeffaf arka plan */
}

    .projects-section h2 {
        font-size: 28px;
        font-weight: 700;
        margin-bottom: 40px;
        letter-spacing: 2px;
    }

.project-grid {
    display: flex;
    gap: 30px;
}

.project-item {
    flex: 1;
    min-width: 300px;
}

.project-image {
    width: 100%;
    padding-top: 60%; /* Oran: Genişliğin %60'ı kadar yükseklik (Mimari yataylık) */
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.project-overlay-item { /* Proje görselleri üzerindeki katman */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-color-item); /* Yarı şeffaf katman */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

/* Hover Efekti */
.project-item:hover .project-overlay-item {
    background-color: rgba(26, 26, 26, 0.2);
}

.project-name {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-color);
}

/* Footer */
.main-footer {
    padding: 30px 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 50px;
    background-color: var(--bg-color-transparent); /* Hafif şeffaf arka plan */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #CCCCCC;
}

.center-info p {
    margin: 5px 0;
}

.right-info a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 15px;
    font-weight: 700;
}

/* Responsive Düzenlemeler (Mobil Görünüm) */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        gap: 10px;
    }

    .main-title {
        font-size: 9vw; /* Mobil Cihazlarda Daha Büyük Başlık */
    }

    .project-grid {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .left-info {
        order: 3;
    }
    /* 'Yapım Aşamasında' en sona */
    .center-info {
        order: 1;
    }

    .right-info {
        order: 2;
    }

    /* Mobil cihazlarda video arka plan performansı için gerekirse */
    #bg-video {
        display: none; /* Mobil cihazlarda videoyu gizle, sadece overlay kalsın */
    }

    body {
        background-color: #1A1A1A; /* Video gizliyken sabit arka plan */
    }

    .video-overlay {
        background: #1A1A1A; /* Video gizliyken sadece koyu renk */
    }
}
