/* ==================== GENEL ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body, html {
    background-color: #000;
    color: #fff;
    scroll-behavior: smooth;
    overflow-x: hidden;
    height: auto;
}

/* Alt sayfalarda beyaz arka plan */
body.subpage {
    background: #fcfcfc;
    color: #111;
}

/* ==================== HEADER & DROPDOWN ==================== */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: background 0.3s;
}

.subpage-header {
    background: #000000 !important;
    background-color: #000000 !important;
    background-image: none !important;
    position: sticky !important;
    top: 0;
}

.header-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
    transition: 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}


.main-menu {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-menu a {
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: 0.3s;
}

.main-menu a:hover { color: #f39c12; }

/* Dropdown Logic */
.dropdown { position: relative; }
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #111;
    min-width: 180px;
    padding: 10px 0;
    border-top: 2px solid #f39c12;
}
.dropdown-content a {
    padding: 10px 20px;
    display: block;
    border-bottom: 1px solid #222;
}
.dropdown:hover .dropdown-content { display: block; }

/* ==================== SPLIT SCREEN (ANA SAYFA) ==================== */
.split-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

.split-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.insaat-image { 
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=1000'); 
    background-size: cover; 
    background-position: center; 
}

.asansor-image { 
    background-image: url('https://images.unsplash.com/photo-1631248979010-6775b0c88180?q=80&w=1000'); 
    background-size: cover; 
    background-position: center; 
}

.overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    transition: 0.5s;
    z-index: 1;
}

.content { 
    z-index: 10; 
    text-align: center; 
    color: white; 
}

.content .icon {
    font-size: 4rem;
    margin-bottom: 10px;
}

.content h2 { 
    font-size: 3rem; 
    font-weight: 900; 
    letter-spacing: 5px; 
    text-transform: uppercase; 
    margin-bottom: 15px; 
}

.content span { 
    padding: 10px 20px; 
    border: 1px solid white; 
    text-transform: uppercase; 
    font-size: 0.7rem; 
    letter-spacing: 2px; 
}

.split-side:hover { flex: 1.5; }
.split-side:hover .overlay { background: rgba(0, 0, 0, 0.3); }

/* ==================== ÖNE ÇIKANLAR (ANA SAYFA) ==================== */
.featured-projects {
    padding: 100px 5%;
    background: #1a1a1a;
}

.section-title { 
    text-align: center; 
    margin-bottom: 50px; 
}

.section-title h2 { 
    font-size: 2rem; 
    letter-spacing: 3px;
    color: #ffffff;
    font-weight: 900;
}

.line { 
    width: 60px; 
    height: 3px; 
    background: #f39c12; 
    margin: 15px auto; 
}

.horizontal-scroll-container {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding-bottom: 30px;
    scrollbar-width: thin;
    scrollbar-color: #f39c12 #111;
}

.featured-card {
    min-width: 320px;
    height: 400px;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.featured-card img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: 0.5s; 
}

.card-overlay {
    position: absolute;
    bottom: 0; 
    left: 0; 
    width: 100%; 
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.card-overlay h3 {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.card-overlay p {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.view-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 15px;
    border: 1px solid #f39c12;
    color: #f39c12;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: bold;
}

.featured-card:hover img { transform: scale(1.1); }


/* ==================== ŞİRKET TANITIM (ANA SAYFA) ==================== */
.company-intro {
    background: linear-gradient(to bottom, #000, #1a1a1a);
    padding: 80px 10% 60px;
    text-align: center;
}

.company-intro p {
    max-width: 850px;
    margin: 0 auto;
    color: #bbb;
    font-size: 0.95rem;
    line-height: 1.9;
    letter-spacing: 0.5px;
}


/* ==================== ALT SAYFALAR (İNŞAAT & ASANSÖR) ==================== */

/* Hero Section */
.hero-sub { 
    padding: 120px 10% 40px; 
    text-align: center; 
    background: #fff; 
    border-bottom: 1px solid #eee; 
}

.hero-sub h1 { 
    font-size: 4rem; 
    font-weight: 900; 
    letter-spacing: -2px; 
    margin-bottom: 30px; 
    color: #111;
}

.intro-text {
    max-width: 800px;
    margin: 20px auto 40px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    font-weight: 400;
}

/* Sekme Butonları */
.tab-container { 
    display: flex; 
    justify-content: center; 
    gap: 15px; 
}

.tab-btn {
    padding: 15px 35px; 
    border: 2px solid #111; 
    background: #fff;
    font-weight: 800; 
    cursor: pointer; 
    transition: 0.3s; 
    letter-spacing: 1px;
}

.tab-btn.active { 
    background: #111; 
    color: #fff; 
}

.tab-btn:hover { 
    background: #f39c12; 
    border-color: #f39c12; 
    color: #fff; 
}

/* Proje Kartları Grid */
.projects-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px; 
    padding: 60px 8%;
}

.project-card { 
    background: #fff; 
    cursor: pointer; 
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); 
    box-shadow: 0 15px 35px rgba(0,0,0,0.05); 
    border-radius: 4px; 
    overflow: hidden;
}

.project-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 30px 60px rgba(0,0,0,0.1); 
}

.project-card img { 
    width: 100%; 
    height: 280px; 
    object-fit: cover; 
}

.card-info { 
    padding: 25px; 
}

.card-info h3 { 
    font-size: 1.4rem; 
    font-weight: 800; 
    margin-bottom: 8px; 
    color: #111;
}

.status-tag { 
    color: #53452f; 
    font-size: 0.7rem; 
    font-weight: 900; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
}

/* Asansör Projeler için yeşil renk */
.project-card.projeler .status-tag {
    color: #27ae60;
}

/* ==================== DETAY SAYFALARI ==================== */

.project-detail-page { 
    display: none; 
    padding: 60px 8%; 
    background: #fff; 
    min-height: 100vh; 
}

.back-btn { 
    padding: 12px 25px; 
    background: #000; 
    color: #fff; 
    border: none; 
    cursor: pointer; 
    margin-bottom: 50px; 
    font-weight: bold; 
}

.back-btn:hover {
    background: #f39c12;
}

.detail-header-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-end; 
    margin-bottom: 25px; 
    border-bottom: 4px solid #111; 
    padding-bottom: 15px; 
}

.detail-header-flex h2 { 
    font-size: 3.5rem; 
    font-weight: 900; 
    letter-spacing: -2px; 
    color: #111;
}

.status-badge { 
    background: #f39c12; 
    color: #fff; 
    padding: 8px 15px; 
    font-size: 0.8rem; 
    font-weight: 900; 
}

/* Proje Künyesi (Meta Data) */
.project-meta-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); 
    gap: 20px; 
    background: #f9f9f9; 
    padding: 30px; 
    margin-bottom: 40px; 
}

.meta-item strong { 
    display: block; 
    font-size: 0.7rem; 
    color: #888; 
    letter-spacing: 2px; 
    margin-bottom: 5px; 
}

.meta-item span { 
    font-size: 1.1rem; 
    font-weight: 800; 
    color: #111; 
}

/* Açıklama Metni */
.project-description { 
    margin-bottom: 50px; 
    max-width: 850px; 
}

.project-description h3 { 
    font-size: 1.8rem; 
    font-weight: 900; 
    margin-bottom: 20px; 
    color: #111;
}

.project-description p { 
    font-size: 1.15rem; 
    line-height: 1.8; 
    color: #444; 
}

/* ==================== GALERİ (THUMBNAIL + LİGHTBOX KAYDIRMALI) ==================== */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 40px;
}

.gallery-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #f0f0f0;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
}

.gallery-thumb:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.gallery-thumb:hover img {
    transform: scale(1.06);
}

.gallery-thumb .thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.gallery-thumb:hover .thumb-overlay {
    background: rgba(0,0,0,0.3);
}

.gallery-thumb .thumb-overlay::after {
    content: '⤢';
    font-size: 2rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-thumb:hover .thumb-overlay::after {
    opacity: 1;
}

/* Lightbox (Tam Ekran Kaydırmalı) */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.96);
    z-index: 9999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.25s ease;
}

.lightbox.active {
    display: flex;
}

.lightbox-main-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex: 1;
    min-height: 0;
    padding: 60px 80px 20px;
    box-sizing: border-box;
}

.lightbox-main-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 60px rgba(255,255,255,0.08);
    animation: zoomIn 0.25s ease;
    display: block;
}

/* Ok butonları */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 1.8rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    z-index: 10001;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: #f39c12;
    border-color: #f39c12;
}

/* Kapatma butonu */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 36px;
    color: white;
    cursor: pointer;
    font-weight: 300;
    transition: 0.3s;
    background: none;
    border: none;
    z-index: 10000;
    line-height: 1;
}

.lightbox-close:hover {
    color: #f39c12;
    transform: rotate(90deg);
}

/* Sayaç */
.lightbox-counter {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 15px;
    margin-top: 5px;
}

/* Alt thumbnail şeridi */
.lightbox-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 20px 20px;
    scrollbar-width: thin;
    scrollbar-color: #f39c12 #222;
    max-width: 100%;
}

.lightbox-thumbnails::-webkit-scrollbar { height: 4px; }
.lightbox-thumbnails::-webkit-scrollbar-track { background: #222; }
.lightbox-thumbnails::-webkit-scrollbar-thumb { background: #f39c12; border-radius: 2px; }

.lightbox-thumbnails img {
    width: 70px;
    height: 50px;
    object-fit: cover;
    border-radius: 3px;
    cursor: pointer;
    opacity: 0.5;
    border: 2px solid transparent;
    transition: 0.2s;
    flex-shrink: 0;
}

.lightbox-thumbnails img.active,
.lightbox-thumbnails img:hover {
    opacity: 1;
    border-color: #f39c12;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ==================== ASANSÖR KART RESİMLERİ ==================== */

/* Ürün kartlarında resmin tamamı görünsün (zoom etmesin) */
.project-card.urunler img {
    object-fit: contain !important;
    background: #f5f5f5;
    padding: 10px;
}

/* ==================== FOOTER ==================== */

.site-footer {
    background-color: #0a0a0a;
    color: #fff;
    padding: 80px 5% 20px;
    border-top: 1px solid #1a1a1a;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
}


.footer-brand p {
    color: #888;
    line-height: 1.6;
    font-size: 0.9rem;
}

.footer-container h3 {
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 25px;
    font-weight: 800;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: #ccc;
    font-size: 0.9rem;
}

.contact-item a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
}

.contact-item a:hover {
    color: #f39c12;
}

.c-icon {
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    text-decoration: none;
    color: #fff;
    padding: 10px 20px;
    border: 1px solid #333;
    font-size: 0.8rem;
    font-weight: bold;
    text-align: center;
    transition: 0.3s;
    border-radius: 4px;
}

.social-btn.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: transparent;
}

.social-btn.whatsapp:hover {
    background-color: #25D366;
    border-color: transparent;
    color: #fff;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 25px;
    border-top: 1px solid #1a1a1a;
    text-align: center;
    color: #555;
    font-size: 0.75rem;
}

/* ==================== MOBİL UYUMLULUK ==================== */

@media (max-width: 768px) {

    .logo img {
        height: 40px;
    }
    .footer-logo {
        height: 45px;
    }

    /* Ana sayfa */
    .split-container { flex-direction: column; }
    .content h2 { font-size: 2rem; }
    
    /* Alt sayfalar */
    .hero-sub h1 { font-size: 2.5rem; }
    .tab-container { flex-direction: column; }
    .detail-header-flex h2 { font-size: 2.2rem; }
    .detail-header-flex { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 10px; 
    }
    .project-meta-grid { grid-template-columns: 1fr 1fr; }
    
    /* Footer */
    .site-footer { padding: 50px 8% 20px; }
    .footer-container { text-align: center; }
    .contact-item { justify-content: center; }
}