@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-size: 17px;
    background: #181a1d;
    color: #f2f2f7;
    min-height: 100vh;
    transition: background .4s, color .4s;
    line-height: 1.65;
}

a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: #222e; text-decoration: underline; }
img { max-width: 100%; display: block; border: 0; }

/* HEADER + NAV */
header {
    display: flex; align-items: center; justify-content: space-between;
    background: #23262c;
    padding: 18px 7vw;
    box-shadow: 0 2px 18px #0003;
    position: sticky; top: 0; z-index: 40;
    border-bottom: 1.5px solid #23262c;
    transition: background .35s;
}
.logo {
    font-size: 2.1rem; font-weight: 700; letter-spacing: 1px;
    color: #fff;
}
nav { display: flex; gap: 34px; align-items: center; }
nav a {
    font-size: 1.08rem; font-weight: 600; letter-spacing: .02em;
    color: #e8e9ee; opacity: .96; padding: 7px 2px;
    position: relative; transition: color .18s;
}
nav a:after {
    content: ""; display: block; width: 0; height: 2.5px; background: #bbb;
    transition: width .22s cubic-bezier(.7,0,.22,1.03);
    border-radius: 3px; margin-top: 2px;
}
nav a:hover, nav a.active { color: #181a1d; background: #e9e9ef13; border-radius: 7px;}
nav a:hover:after, nav a.active:after { width: 100%; background: #444; }
#theme-toggle {
    margin-left: 18px; background: none; border: none;
    color: #bbb; font-size: 1.38rem; cursor: pointer;
    transition: transform .22s;
    outline: none;
}
#theme-toggle:hover { transform: scale(1.15) rotate(-18deg); color: #181a1d; }

/* PRELOADER */
#preloader {
    position: fixed; z-index: 9999; background: #fff; top: 0; left: 0; right: 0; bottom: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: opacity 0.8s cubic-bezier(.48,1.57,.63,.98);
    opacity: 1; pointer-events: auto;
}
#preloader .loader {
    width: 58px; height: 58px; border-radius: 50%;
    border: 7px solid #ededed;
    border-top: 7px solid #606872;
    animation: spin 1.1s linear infinite;
    margin-bottom: 19px;
}
#preloader .preload-text {
    font-weight: 600; font-size: 1.15rem; color: #606872; letter-spacing: 1px;
    text-shadow: 0 2px 10px #7a7a7a12;
}
.preloader-hide { opacity: 0 !important; pointer-events: none; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* REVEAL ANİMASYONU */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.7s cubic-bezier(.38,1.15,.71,.91);}
.reveal.active { opacity: 1; transform: translateY(0); }

main { padding: 56px 6vw 32px 6vw; min-height: 60vh; }
h1, h2, h3, h4 { font-weight: 700; color: #181a1d; }
h1 { font-size: 2.3rem; margin-bottom: 20px; letter-spacing: 1px; }
h2 { font-size: 1.35rem; margin-bottom: 14px; letter-spacing: .5px;}
p { color: #53545b; font-size: 1.05rem; }
section { margin-bottom: 40px; }

/* HERO */
.hero { margin-top: 48px; margin-bottom: 34px; text-align: center; }
.hero h1 { font-size: 2.2rem; margin-bottom: 10px; color: #181a1d; }
.hero p { font-size: 1.13rem; color: #53545b; }

.main-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f4f4f7;
    box-shadow: 0 6px 24px #0001;
    height: 410px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 2px 7px #0002;
}
@media (max-width: 600px) {
    .logo-img { width: 22px; height: 22px; }
}

.main-slider { display: flex; transition: transform 0.6s cubic-bezier(.41,1.14,.54,.97); height: 100%; }
.slider-item { min-width: 100%; height: 410px; display: flex; align-items: center; justify-content: center; }
.slider-item img { width: 100%; height: 410px; object-fit: cover; border-radius: 0; }

.slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: #e2e4ea99; color: #303030; border: none; font-size: 2.5rem;
    cursor: pointer; z-index: 2; border-radius: 100px; padding: 0 18px;
    transition: background .17s, box-shadow .17s, color .18s;
    box-shadow: 0 2px 12px #0001; opacity: 0.88;
}
.slider-btn:hover { background: #bbb; color: #fff; opacity: 1;}
.slider-btn-left { left: 14px;}
.slider-btn-right { right: 14px;}

/* ÖZELLİK KUTULARI */
.features-section {
    width: 100%; max-width: 1160px; margin: 44px auto 26px auto;
    display: flex; justify-content: center; align-items: flex-start; gap: 36px;
}
.feature-box {
    flex: 1; background: #fff; border-radius: 14px; padding: 28px 22px;
    box-shadow: 0 2px 18px #0001, 0 2px 8px #ddd2;
    text-align: center; transition: transform .18s, box-shadow .18s;
    border: 1.1px solid #e7e7ee;
    display: flex; flex-direction: column; align-items: center; min-width: 0;
}
.feature-box img {
    width: 70px; height: 70px; object-fit: contain; margin-bottom: 16px;
    background: #e9eaf2; border-radius: 12px; box-shadow: 0 1px 6px #0001;
}
.feature-box h3 {
    color: #252c38; font-size: 1.11rem; margin-bottom: 6px; letter-spacing: .7px;
}
.feature-box p { color: #53545b; font-size: .97rem; }
.feature-box:hover {
    transform: scale(1.03) translateY(-4px);
    box-shadow: 0 8px 24px #9992, 0 2px 16px #0001;
}

@media (max-width: 1100px) {
    .features-section { flex-direction: column; gap: 16px;}
    .feature-box { width: 100%; max-width: 400px; margin: 0 auto;}
    .main-slider-container, .slider-item, .slider-item img { height: 230px;}
}
@media (max-width: 700px) {
    .main-slider-container, .slider-item, .slider-item img { height: 130px;}
}

/* GALERİ */
.home-gallery {
    display: flex; flex-wrap: wrap; gap: 28px; justify-content: center;
    margin-top: 35px;
}
.home-gallery img {
    width: 340px; height: 220px; object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px #0002, 0 2px 8px #eee2;
    background: #eaeaea;
    transition: transform .22s, box-shadow .19s;
    cursor: pointer;
}
.home-gallery img:hover { transform: scale(1.05) rotate(-1deg); box-shadow: 0 6px 18px #ccc8; }

/* HAKKIMIZDA */
.about-section { max-width: 800px; margin: 45px auto 0 auto; display: flex; flex-direction: column; align-items: center; gap: 28px;}
.about-text { width: 100%; text-align: center;}
.about-img { width: 100%; display: flex; justify-content: center;}
.about-img img {
    width: 95%; max-width: 580px; aspect-ratio: 16/9; object-fit: cover;
    border-radius: 14px; box-shadow: 0 5px 20px #ccc5, 0 2px 8px #aaa3;
    margin-top: 6px;
}
.btn-popup {
    background: #188ff6;
    color: #fff;
    border: none;
    border-radius: 9px;
    padding: 12px 34px;
    font-weight: 600;
    font-size: 1.13rem;
    cursor: pointer;
    box-shadow: 0 2px 8px #188ff622;
    transition: background .17s, transform .16s;
}
.btn-popup:hover {
    background: #1069b3;
    transform: scale(1.06);
}

/* HİZMETLER SAĞ SOL BLOKLAR */
.services-list { width: 100%; max-width: 1100px; margin: 0 auto; }
.service-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 32px; margin-bottom: 46px;
}
.service-image-right { order: 2; }
.service-text-left { order: 1; text-align: left;}
.service-image-left { order: 1; }
.service-text-right { order: 2; text-align: right;}
.service-image img {
    width: 290px; height: 190px; object-fit: cover; border-radius: 12px;
    background: #ececec; box-shadow: 0 2px 10px #bbb2;
}
.service-text h2 { color: #252c38; margin-bottom: 8px;}
.service-text p { color: #53545b; }

@media (max-width: 900px) {
    .service-row { flex-direction: column !important; gap: 18px; text-align: center; }
    .service-image, .service-text { order: 0 !important; width: 100% !important; }
    .service-image img { width: 100%; max-width: 420px; margin: 0 auto; }
}
@media (max-width: 600px) {
    header { flex-direction: column; padding: 13px 2vw; gap: 10px;}
    .logo { font-size: 1.3rem;}
    nav { gap: 10px;}
    main { padding: 28px 3vw; }
    .home-gallery img { width: 97vw; height: 120px; }
    .about-img img { border-radius: 8px; }
    .service-image img { height: 110px; }
}

/* CONTACT (İLETİŞİM) */
.contact-section { max-width: 520px; margin: 38px auto; padding: 20px 13px; border-radius: 13px; background: #fafafd; box-shadow: 0 2px 10px #eee8; }
.contact-section h1 { text-align: center; }
.contact-list { list-style: none; margin: 16px 0 16px 0; }
.contact-list li { padding: 10px 0; border-bottom: 1px solid #e6e6e7; color: #222;}
.contact-list li:last-child { border-bottom: 0; }
.contact-list b { color: #3b4350; }
.contact-btn {
    display: inline-block; background: linear-gradient(90deg,#f2f2f2 60%,#e6eaf1 120%);
    color: #252c38; font-weight: 600; padding: 12px 26px; border-radius: 999px;
    font-size: 1.05rem; border: none; margin: 12px 10px 8px 0; cursor: pointer;
    box-shadow: 0 2px 12px #d1d5df33; transition: background .2s, transform .2s;
}
.contact-btn:hover { background: linear-gradient(90deg,#e6eaf1 60%,#f2f2f2 120%); transform: scale(1.05);}
.whatsapp-btn { background: linear-gradient(90deg,#def8d4,#eaf7fd 90%); color: #252c38; }
.whatsapp-btn:hover { background: linear-gradient(90deg,#eaf7fd,#def8d4 90%); }
.call-btn { background: linear-gradient(90deg,#ffe3ec,#eaf7fd 120%);}
.call-btn:hover { background: linear-gradient(90deg,#eaf7fd,#ffe3ec 120%);}
.contact-map { margin-top: 18px; border-radius: 9px; overflow: hidden; box-shadow: 0 2px 12px #ececec; }

/* FOOTER */
footer {
    background: #f4f4f7; padding: 18px 0; text-align: center;
    font-size: 1.05rem; color: #444;
    margin-top: 36px;
    box-shadow: 0 -2px 6px #eaeaea;
    letter-spacing: .02em;
}

/* POPUP OVERLAY */
.popup-overlay {
    position: fixed; z-index: 2222; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(32,34,37,0.88);
    display: flex; align-items: center; justify-content: center;
    animation: popupFadeIn .4s cubic-bezier(.37,1.8,.48,.89);
}
@keyframes popupFadeIn { from { opacity: 0; } to { opacity: 1; } }
.popup-content {
    background: #fff; padding: 26px 17px 19px 17px;
    border-radius: 13px; max-width: 410px; width: 97vw;
    box-shadow: 0 4px 24px #bbb7;
    position: relative;
    animation: popupGrow .33s cubic-bezier(.37,1.8,.48,.89);
}
@keyframes popupGrow { from { transform: scale(.89); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.popup-close {
    position: absolute; top: 11px; right: 12px;
    background: none; border: none; color: #444;
    font-size: 1.5rem; cursor: pointer; opacity: 0.7;
    transition: opacity .15s;
}
.popup-close:hover { opacity: 1; color: #ea1d3c; }
.bolgeler-list { list-style: none; margin: 13px 0 8px 0; padding: 0; max-height: 190px; overflow: auto;}
.bolgeler-list li {
    background: #ececec; color: #23262c; border-radius: 7px;
    padding: 8px 14px; margin-bottom: 6px; font-weight: 500; font-size: 1.03rem;
    box-shadow: 0 1px 8px #ddd4;
}
.popup-map { margin-top: 13px; border-radius: 6px; overflow: hidden; }

/* TEMA DEĞİŞTİRME (AÇIK TEMA) */

body.light-theme,
body:not(.dark-theme) {
    background: #f8f9fa;
    color: #222;
}
body.light-theme header, body.light-theme footer, body.light-theme .popup-content {
    background: #fff;
}
body.light-theme nav a { color: #35364a; }
body.light-theme nav a:after { background: #bcbccf; }
body.light-theme .logo { color: #252c38; }
body.light-theme .home-gallery img, 
body.light-theme .service-image img { background: #f8f8fa; }
body.light-theme .contact-section { background: #fff; }
body.light-theme .bolgeler-list li { background: #e6e6ee; }

/* Koyu Tema Override */
body.dark-theme {
    background: #181a1d !important; color: #f2f2f7 !important;
}
body.dark-theme header, body.dark-theme footer, body.dark-theme .popup-content {
    background: #23262c !important;
}
body.dark-theme nav a { color: #e8e9ee !important; }
body.dark-theme nav a:after { background: #bbb !important; }
body.dark-theme .logo { color: #fff !important; }
body.dark-theme .home-gallery img, body.dark-theme .service-image img {
    background: #26272c !important;
}
body.dark-theme .contact-section { background: #181a1d !important; }
body.dark-theme .bolgeler-list li { background: #23262c !important; color: #f2f2f7 !important; }
body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme .logo,
body.dark-theme .feature-box h3,
body.dark-theme .service-text h2,
body.dark-theme .about-text h1,
body.dark-theme .contact-section h1,
body.dark-theme .popup-content h3 {
    color: #fff !important;
}
body.dark-theme p,
body.dark-theme .feature-box p,
body.dark-theme .service-text p,
body.dark-theme .about-text p,
body.dark-theme .contact-list li,
body.dark-theme .home-gallery img,
body.dark-theme .service-image img,
body.dark-theme .bolgeler-list li {
    color: #f2f2f7 !important;
}
body.dark-theme a,
body.dark-theme nav a,
body.dark-theme .contact-btn,
body.dark-theme .call-btn,
body.dark-theme .whatsapp-btn {
    color: #f2f2f7 !important;
}
body.dark-theme .feature-box {
    background: #23262c !important;
    border-color: #303136 !important;
}
body.dark-theme .about-section,
body.dark-theme .contact-section {
    background: #1a1b20 !important;
}

body.dark-theme .slider-item img {
    background: #1a1b20 !important;
    filter: brightness(0.88) contrast(1.06);
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 9px; background: #ededed;}
::-webkit-scrollbar-thumb { background: #c5c7d1; border-radius: 6px;}
::-webkit-scrollbar-thumb:hover { background: #b2b3bd; }
