/* --- Genel Ayarlar --- */
body, html { 
    margin: 0; padding: 0; width: 100%; 
    background-color: #f7f3ef; 
    font-family: 'Times New Roman', serif; 
    scroll-behavior: smooth; 
}

/* --- Navbar --- */
#navbar { 
    position: fixed; top: 0; width: 100%; z-index: 1000; 
     transition:all .35s ease;
}
.nav-scrolled {
    background-color: #2B313D !important;
    border-bottom: 1px solid #c5a059;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

/* --- Slider (Mobil Uyumlu) --- */
#slider { 
    position: relative; 
    width: 100%; 
    height: 100vh; /* Masaüstünde tam ekran */
    overflow: hidden; 
}

.banner-slide { 
    position: absolute; top: 0; left: 0; 
    width: 100%; height: 100%; 
    object-fit: cover; /* Görseli bozmadan sığdırır */
    object-position: center; /* Her zaman tam ortalar */
    opacity: 0; 
    transform: scale(1);
    transition: opacity 1.2s ease-in-out, transform 8s ease-out;
}
.banner-slide.active { 
    opacity: 1; 
    transform: scale(1.03);
}

/* --- About Bölümü --- */
.about-container { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 6rem; 
    align-items: center; 
    padding: 100px 80px; 
}

.about-images-wrapper { position: relative; width: 100%; min-height: 550px; }
.about-img { 
    border: 1px solid #c5a059; padding: 8px; background: white; 
    transition: transform 0.5s ease, box-shadow 0.5s ease; cursor: pointer;
}
.about-img:hover { transform: scale(1.03); box-shadow: 0 25px 30px rgba(0,0,0,0.15); }
.main-img { width: 85%; z-index: 1; }
.overlay-img { position: absolute; bottom: 20px; right: 0; width: 50%; z-index: 2; }

/* --- İstatistik ve Kartlar (Güncellendi) --- */
.stat-card { 
    background-color: #f7f3ef; padding: 2.5rem; border: 1px solid #e5e5e5;
    transition: all 0.4s ease; cursor: pointer; position: relative; 
    display: flex; flex-direction: column; justify-content: flex-end; 
    min-height: 250px; /* İçeriğin düzgün görünmesi için */
}
.detail-text { 
    max-height: 0; opacity: 0; overflow: hidden; 
    transition: all 0.5s ease; color: #4a4a4a; font-size: 0.9rem; 
}
.stat-card:hover .detail-text { max-height: 200px; opacity: 1; margin-top: 15px; }

/* --- Portfolyo / Slider Thumbnail --- */
.thumb-img {
    width: 80px; height: 50px; object-fit: cover; cursor: pointer;
    border: 2px solid transparent; transition: all 0.3s ease;
}
.thumb-img.active-thumb { border: 2px solid #c5a059; transform: scale(1.05); }

#lightbox {
    display: none; position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.9); z-index: 2000;
    align-items: center; justify-content: center;
}

/* --- Mobil Duyarlılık (Responsive - Güncellendi) --- */
@media (max-width: 768px) {
    /* Slider yüksekliği */
    #slider { height: 60vh; }

    .about-images-wrapper{
        display:flex;
        justify-content:center;
    }

    .main-img{
        width:85% !important;
        margin:auto;
        display:block;
    }
    
    .about-container { grid-template-columns: 1fr !important; padding: 40px 20px !important; }
    
    /* Kartların mobilde taşmasını engellemek için */
    .stat-card { height: auto !important; min-height: auto !important; padding: 1.5rem !important; }
    .stat-card h3 { font-size: 1rem !important; line-height: 1.2; }
    .stat-card .text-5xl { font-size: 2rem !important; }
    
    .px-24 { padding-left: 20px !important; padding-right: 20px !important; }
    
    /* Mobil menü görünürlüğü */
    .hidden.md\:flex { display: none !important; }
}
#mobile-menu{
    background:#2B313D;
}

#mobile-menu a{
    transition:.3s;
}

#mobile-menu a:hover{
    color:#c5a059;
    letter-spacing:3px;
}
#slider::before{
    content:"";
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.22);
    z-index:5;
}
/* ===== Statistics Section ===== */

.stats-section{
    background:#2B313D;
    border-top:2px solid #c5a059;
    border-bottom:2px solid #c5a059;
    position:relative;
    overflow:hidden;
}

/* Arka planda hafif desen */
.stats-section::before{
    content:"";
    position:absolute;
    inset:0;
    background:
        radial-gradient(circle at top right,
        rgba(197,160,89,.08),
        transparent 45%);
    pointer-events:none;
}

/* Başlık */
.stats-section h2{
    color:#fff;
    font-style:italic;
    margin-bottom:60px;
}

/* Kartlar */
.stat-card{
    background:#f7f3ef;
    border:1px solid rgba(197,160,89,.35);
    transition:.35s;
}

/* Hover */
.stat-card:hover{
    transform:translateY(-8px);
    border-color:#c5a059;
    box-shadow:0 18px 35px rgba(0,0,0,.25);
}
/* ===================================================
   PROCESS SECTION
=================================================== */
.process-section{
    background:#fff;
    border-top:2px solid #c5a059;
    border-bottom:2px solid #c5a059;
    padding:100px 0;
    overflow:hidden;
}

.process-line{
    position:absolute;
    top:48px;
    left:0;
    width:100%;
    height:2px;
    background:#c5a059;
    opacity:.35;
}

.process-step{
    position:relative;
    z-index:5;
}

.process-content{
    position:relative;
    text-align:center;
    padding-top:35px;
}

.process-number{
    position:absolute;
    top:-35px;
    left:50%;
    transform:translateX(-50%);
    font-size:90px;
    font-weight:700;
    color:rgba(43,49,61,.12);   /* Biraz daha görünür */
    line-height:1;
    z-index:2;
    pointer-events:none;
    transition:.35s;
}

.process-icon{
    position:relative;
    z-index:3;   /* Numaradan sadece 1 kat yukarıda */

    width:95px;
    height:95px;
    margin:0 auto 25px;

    border-radius:50%;
    background:#2B313D;
    border:4px solid #2B313D;

    display:flex;
    align-items:center;
    justify-content:center;

    transition:.35s;
}

.process-icon i, .process-icon svg{
    color:#fff;
    font-size:32px;
}

.process-step h3{
    color:#2B313D;
    font-size:22px;
    font-weight:700;
    margin-bottom:15px;
    transition:.35s;
}

.process-step p{
    color:#666;
    line-height:1.8;
}

.process-step:hover .process-icon{
    background:#c5a059;
    border-color:#c5a059;
    transform:translateY(-8px);
}

.process-step:hover h3{
    color:#c5a059;
}

.process-step:hover .process-number{
    color:rgba(197,160,89,.20);
}
/* Responsive */

@media(max-width:768px){

    .process-section{

        padding:70px 20px;

    }

    .process-line{

        display:none;

    }

    .process-step{

        margin-bottom:60px;

    }

    .process-number{

        font-size:70px;

        top:-35px;

    }

    .process-icon{

        width:85px;

        height:85px;

    }

    .process-icon i, .process-icon svg{

        font-size:28px;

    }

}
/*==================================================
                PORTFOLIO
==================================================*/

.portfolio-section{
    padding:120px 0;
    background:#f8f8f8;
    border-top:2px solid #c5a059;
    border-bottom:2px solid #c5a059;
}

.portfolio-subtitle{
    color:#c5a059;
    text-transform:uppercase;
    letter-spacing:4px;
    font-size:14px;
    font-weight:600;
    margin-bottom:15px;
}

.portfolio-title{
    font-size:52px;
    color:#2B313D;
    font-family:Georgia,serif;
    font-style:italic;
    margin-bottom:50px;
}

/*============================
        TABS
============================*/

.portfolio-tabs{

    display:flex;

    justify-content:center;

    gap:25px;

    margin-bottom:45px;

}

.portfolio-tab{

    padding:14px 40px;

    border:none;

    background:none;

    font-size:15px;

    font-weight:700;

    letter-spacing:1px;

    color:#777;

    cursor:pointer;

    border-bottom:3px solid transparent;

    transition:.35s;

}

.portfolio-tab:hover{

    color:#2B313D;

}

.portfolio-tab.active{

    color:#2B313D;

    border-color:#c5a059;

}

/*============================
        SLIDER
============================*/

.portfolio-slider{

    max-width:1400px;

    margin:auto;

}

.portfolio-image-wrapper{

    position:relative;

    overflow:hidden;

    border-radius:18px;

    box-shadow:0 25px 60px rgba(0,0,0,.18);

    background:#e9e4dc;

}

.portfolio-image-bg{

    position:absolute;
    inset:0;
    background-size:cover;
    background-position:center;
    filter:blur(35px) brightness(.6);
    transform:scale(1.2);
    z-index:1;

}

.portfolio-image-wrapper img{

    position:relative;
    z-index:2;

    width:100%;

    height:700px;

    object-fit:contain;

    transition:.6s;

}

.portfolio-image-wrapper:hover img{

    transform:scale(1.03);

}

/*============================
        CATEGORY
============================*/

.project-category{

    position:absolute;

    left:30px;

    top:30px;

    z-index:3;

    background:#2B313D;

    color:#fff;

    padding:12px 25px;

    border-left:5px solid #c5a059;

    letter-spacing:2px;

    font-size:13px;

    font-weight:bold;

}

/*============================
        ARROWS
============================*/

.slider-arrow{

    position:absolute;

    top:50%;

    z-index:3;

    transform:translateY(-50%);

    width:60px;

    height:60px;

    border:none;

    border-radius:50%;

    background:rgba(43,49,61,.75);

    color:#fff;

    font-size:28px;

    cursor:pointer;

    transition:.35s;

}

.slider-arrow:hover{

    background:#c5a059;

}

.slider-arrow.left{

    left:25px;

}

.slider-arrow.right{

    right:25px;

}

/*============================
        INFO
============================*/

.project-info{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-top:30px;

}

.project-info h3{

    color:#2B313D;

    font-size:34px;

    margin-bottom:8px;

}

.project-info p{

    color:#777;

    font-size:18px;

}

#counter{

    font-size:28px;

    color:#c5a059;

    font-weight:bold;

}

/*============================
        PROGRESS
============================*/

.progress-container{

    width:100%;

    height:4px;

    background:#ddd;

    margin:30px 0;

    border-radius:5px;

    overflow:hidden;

}

#progress-bar{

    height:100%;

    width:0;

    background:#c5a059;

    transition:width 8s linear;

}

/*============================
        THUMBNAILS
============================*/

.thumbnail-container{

    display:flex;

    justify-content:center;

    gap:18px;

    flex-wrap:nowrap;

    overflow-x:auto;

    padding:15px 5px;

    scrollbar-width:none;

}

.thumbnail-container::-webkit-scrollbar{

    display:none;

}

.thumbnail{

    width:140px;

    height:95px;

    object-fit:cover;

    border-radius:10px;

    cursor:pointer;

    opacity:.55;

    transition:.35s;

    border:3px solid transparent;

    flex:none;

}

.thumbnail:hover{

    opacity:1;

    transform:translateY(-6px);

}

.thumbnail.active{

    opacity:1;

    border-color:#c5a059;

    transform:scale(1.08);

}

/*============================
        LIGHTBOX
============================*/

.lightbox{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.95);

    display:none;

    justify-content:center;

    align-items:center;

    z-index:99999;

}

.lightbox img{

    max-width:90%;

    max-height:90%;

}

.close-lightbox{

    position:absolute;

    top:30px;

    right:40px;

    color:white;

    font-size:50px;

    cursor:pointer;

}

.lightbox-arrow{

    position:absolute;

    top:50%;

    transform:translateY(-50%);

    width:70px;

    height:70px;

    border:none;

    border-radius:50%;

    background:#2B313D;

    color:white;

    font-size:30px;

    cursor:pointer;

    transition:.35s;

}

.lightbox-arrow:hover{

    background:#c5a059;

}

.lightbox-arrow.left{

    left:40px;

}

.lightbox-arrow.right{

    right:40px;

}

/*============================
        MOBILE
============================*/

@media(max-width:768px){

.portfolio-title{

font-size:36px;

}

.portfolio-tabs{

flex-direction:column;

gap:12px;

}

.project-info{

flex-direction:column;

text-align:center;

gap:20px;

}

.portfolio-image-wrapper img{

height:340px;

}

.thumbnail{

width:90px;

height:70px;

}

.slider-arrow{

width:45px;

height:45px;

font-size:20px;

}

}
.map-container{
    width:100%;
    height:450px;
    overflow:hidden;
    border-radius:20px;
}

.map-container iframe{
    width:100%;
    height:100%;
    border:0;
}
.gallery{
    position:relative;
    width:900px;
    height:650px;
    margin:auto;
}

html{
    scroll-behavior:smooth;
}

#scrollTopBtn{

    position:fixed;
    right:30px;
    bottom:30px;

    width:58px;
    height:58px;

    border:none;
    outline:none;

    border-radius:50%;

    background:rgba(197,160,89,.95);

    color:#fff;

    cursor:pointer;

    display:flex;
    align-items:center;
    justify-content:center;

    box-shadow:
    0 12px 30px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.25);

    backdrop-filter:blur(8px);

    opacity:0;
    visibility:hidden;

    transform:translateY(25px);

    transition:
    opacity .35s ease,
    transform .35s ease,
    visibility .35s ease,
    background .3s ease,
    box-shadow .3s ease;

    z-index:99999;
}

#scrollTopBtn.show{

    opacity:1;
    visibility:visible;
    transform:translateY(0);

}

#scrollTopBtn:hover{

    background:#b8903d;

    transform:translateY(-6px) scale(1.08);

    box-shadow:
    0 20px 40px rgba(0,0,0,.25);

}

#scrollTopBtn:active{

    transform:scale(.95);

}

#scrollTopBtn svg{

    transition:transform .3s ease;

}

#scrollTopBtn:hover svg{

    transform:translateY(-2px);

}

@media(max-width:768px){

    #scrollTopBtn{

        right:18px;
        bottom:18px;

        width:52px;
        height:52px;

    }

}/* =======================================================
   CONTACT SECTION
======================================================= */

.contact-card,
.form-card{
    background:#1a1614;
    border:1px solid rgba(197,160,89,.18);
    backdrop-filter:blur(14px);
    border-radius:28px;
    transition:.35s ease;
    position:relative;
    overflow:hidden;
}

.contact-card:hover,
.form-card:hover{
    transform:translateY(-8px);
    border-color:#c5a059;
    box-shadow:0 25px 70px rgba(0,0,0,.45);
}

.contact-card::before,
.form-card::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(135deg,
        rgba(197,160,89,.05),
        transparent 45%);
    pointer-events:none;
}

.gold-divider{
    width:70px;
    height:2px;
    background:#c5a059;
    margin:35px 0;
}

/* =======================================================
   CONTACT INFO
======================================================= */

.contact-info{
    display:flex;
    align-items:flex-start;
    gap:18px;
    margin-bottom:30px;
}

.contact-icon{
    width:50px;
    height:50px;
    border-radius:14px;
    background:rgba(197,160,89,.12);
    color:#c5a059;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
    flex-shrink:0;
}

.contact-label{
    display:block;
    color:#888;
    font-size:13px;
    letter-spacing:2px;
    text-transform:uppercase;
    margin-bottom:4px;
}

.contact-info a{
    color:#fff;
    text-decoration:none;
    transition:.3s;
}

.contact-info a:hover{
    color:#c5a059;
}

.contact-message{
    margin-top:40px;
    color:#b9b9b9;
    line-height:1.9;
    font-size:15px;
}

/* =======================================================
   INPUTS
======================================================= */

.contact-input{
    width:100%;
    background:#241f1c;
    border:1px solid #39312c;
    border-radius:16px;
    color:#fff;
    padding:18px 22px;
    transition:.35s;
    outline:none;
    font-size:15px;
}

.contact-input::placeholder{
    color:#6d6d6d;
}

.contact-input:hover{
    border-color:#6b5730;
}

.contact-input:focus{
    border-color:#c5a059;
    box-shadow:
        0 0 0 4px rgba(197,160,89,.12),
        0 0 20px rgba(197,160,89,.18);
}

textarea.contact-input{
    min-height:180px;
}

/* =======================================================
   ERROR
======================================================= */

.error-message{
    color:#ff6b6b;
    font-size:13px;
    display:block;
    margin-top:8px;
    min-height:18px;
}

/* =======================================================
   BUTTON
======================================================= */

.contact-button{
    width:100%;
    height:64px;
    border:none;
    cursor:pointer;
    border-radius:18px;
    background:linear-gradient(135deg,#c5a059,#b48e43);
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    font-size:15px;
    font-weight:600;
    letter-spacing:3px;
    text-transform:uppercase;
    transition:.35s;
}

.contact-button:hover{
    transform:translateY(-3px);
    box-shadow:0 15px 40px rgba(197,160,89,.35);
}

.contact-button:active{
    transform:scale(.98);
}

.contact-button svg{
    transition:.35s;
}

.contact-button:hover svg{
    transform:translateX(5px);
}

/* =======================================================
   LOADER
======================================================= */

.loader{
    width:22px;
    height:22px;
    border:3px solid rgba(255,255,255,.3);
    border-top-color:#c5a059;
    border-radius:50%;
    animation:spin .7s linear infinite;
}

@keyframes spin{

    to{

        transform:rotate(360deg);

    }

}

/* =======================================================
   TOAST
======================================================= */

#toast{

    position:fixed;

    top:30px;

    right:30px;

    width:360px;

    background:#1a1614;

    border:1px solid rgba(197,160,89,.25);

    border-radius:24px;

    padding:22px;

    display:flex;

    gap:18px;

    align-items:flex-start;

    transform:translateX(420px);

    opacity:0;

    transition:.5s;

    z-index:99999;

    box-shadow:0 30px 80px rgba(0,0,0,.45);

}

#toast.show{

    transform:translateX(0);

    opacity:1;

}

.toast-icon{

    width:56px;

    height:56px;

    border-radius:50%;

    background:#16a34a;

    display:flex;

    align-items:center;

    justify-content:center;

    color:white;

    font-size:24px;

    flex-shrink:0;

}

#toast h4{

    color:white;

    font-size:18px;

    margin-bottom:8px;

}

#toast p{

    color:#c8c8c8;

    line-height:1.7;

    font-size:14px;

}

/* =======================================================
   RESPONSIVE
======================================================= */

@media(max-width:991px){

.contact-card{

    margin-bottom:35px;

}

#toast{

    width:calc(100% - 30px);

    right:15px;

    left:15px;

    transform:translateY(-120%);

}

#toast.show{

    transform:translateY(0);

}

}

@media(max-width:640px){

.contact-card,
.form-card{

    padding:28px;

}

.contact-button{

    height:58px;

    font-size:14px;

    letter-spacing:2px;

}

.contact-input{

    padding:16px;

}

}

/* =======================================================
   BEFORE & AFTER COMPARISON SLIDER
======================================================= */

.ba-wrapper {
    max-width: 1050px;
    margin: 0 auto;
}

.ba-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid #c5a059;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    cursor: ew-resize;
    -webkit-user-select: none;
    user-select: none;
    touch-action: pan-y;
    background: #e5e0d8;
}

.ba-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    pointer-events: none;
}

.ba-img-before {
    z-index: 1;
}

.ba-img-after {
    z-index: 2;
    clip-path: inset(0 0 0 var(--ba-pos, 50%));
}

.ba-badge {
    position: absolute;
    top: 16px;
    z-index: 5;
    background: rgba(20, 17, 14, 0.65);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 6px 14px;
    border-radius: 3px;
    pointer-events: none;
    backdrop-filter: blur(2px);
    opacity: 1;
    transition: opacity 0.25s ease;
}

.ba-badge-hidden {
    opacity: 0;
}

.ba-badge-before { left: 16px; }
.ba-badge-after  { right: 16px; }

.ba-divider {
    position: absolute;
    top: 0;
    left: var(--ba-pos, 50%);
    height: 100%;
    width: 3px;
    margin-left: -1.5px;
    background: #c5a059;
    z-index: 6;
    pointer-events: none;
    box-shadow: 0 0 8px rgba(0,0,0,0.4);
}

.ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #c5a059;
    color: #2C333B;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
    border: 3px solid #fff;
}

.ba-hint {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 7;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(20, 17, 14, 0.7);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 8px 16px;
    border-radius: 30px;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.ba-hint.ba-hint-hidden {
    opacity: 0;
}

.ba-project-title {
    text-align: center;
    margin-top: 24px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #2b2320;
    letter-spacing: 0.3px;
}

.ba-thumbs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.ba-thumb {
    width: 64px;
    height: 44px;
    object-fit: cover;
    border-radius: 3px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.25s ease;
}

.ba-thumb:hover {
    opacity: 1;
}

.ba-thumb.ba-thumb-active {
    border-color: #c5a059;
    opacity: 1;
    transform: scale(1.06);
}

@media (max-width: 640px) {
    .ba-handle { width: 38px; height: 38px; }
    .ba-badge { font-size: 10px; padding: 5px 10px; top: 10px; }
    .ba-badge-before { left: 10px; }
    .ba-badge-after { right: 10px; }
}
