/* ================================
   ME-FE İnşaat — style.css v2
   Designed by Bedir Studio
   ================================ */

:root {
    --gold: #C9A94A;
    --gold-l: #E8C96A;
    --gold-d: #A07A2A;
    --black: #0A0A0A;
    --dark: #111111;
    --dark2: #181818;
    --dark3: #222222;
    --gray: #555;
    --gray-l: #999;
    --white: #fff;
    --off: #F5F3EE;
    --font-d: 'Cormorant Garamond', Georgia, serif;
    --font-b: 'Raleway', sans-serif;
    --r: 6px;
    --rl: 14px;
    --shadow: 0 10px 50px rgba(0,0,0,.4);
    --tr: all .32s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-b); background: var(--dark); color: var(--white); line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---- HEADER ---- */
#header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 900;
    transition: var(--tr);
}
#header.scrolled {
    background: rgba(10,10,10,.96);
    box-shadow: 0 2px 30px rgba(0,0,0,.6);
    backdrop-filter: blur(14px);
}
.header-inner {
    max-width: 1180px; margin: 0 auto; padding: 0 24px;
    height: 78px; display: flex; align-items: center; justify-content: space-between;
}
.logo-link { display: flex; align-items: center; opacity: 0; pointer-events: none; transition: opacity .4s ease; }
.logo-link.logo-visible { opacity: 1; pointer-events: all; }
.logo-img { height: 52px; width: auto; object-fit: contain; transition: var(--tr); }
.logo-img:hover { transform: scale(1.04); }

.main-nav { display: flex; gap: 34px; align-items: center; }
.main-nav a {
    font-size: .82rem; font-weight: 600; letter-spacing: .12em;
    text-transform: uppercase; color: rgba(255,255,255,.8);
    position: relative; padding-bottom: 3px; transition: var(--tr);
}
.main-nav a::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 1.5px; background: var(--gold); transition: width .3s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 26px; height: 2px; background: var(--white); transition: var(--tr); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- HERO ---- */
.hero {
    position: relative; height: 100vh; min-height: 680px;
    display: flex; align-items: center; overflow: hidden;
}
.hero-slideshow { position: absolute; inset: 0; }
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center center;
    background-repeat: no-repeat;
    opacity: 0; transition: opacity 1.4s ease;
    animation: kenBurns 12s ease forwards;
}
.hero-slide.active { opacity: 1; }
@keyframes kenBurns { from { transform: scale(1.12); } to { transform: scale(1.0); } }

.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(135deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.6) 100%);
}
.hero-content {
    position: relative; z-index: 2;
    width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px;
    padding-top: 78px;
    display: flex; flex-direction: row; align-items: center;
    gap: 60px;
}
.hero-left {
    flex-shrink: 0;
    animation: fadeUp .8s ease .2s both;
}
.hero-logo {
    height: 200px; width: auto; object-fit: contain;
    filter: drop-shadow(0 6px 32px rgba(0,0,0,.8));
}
.hero-right {
    display: flex; flex-direction: column; align-items: flex-start;
}
.hero-badge {
    display: inline-block;
    border: 1px solid var(--gold); color: var(--gold);
    font-size: .68rem; font-weight: 600; letter-spacing: .28em;
    text-transform: uppercase; padding: 8px 20px; border-radius: 2px;
    margin-bottom: 24px;
    animation: fadeUp .8s ease .4s both;
    font-family: var(--font-b);
}
.hero-title {
    font-family: var(--font-d);
    font-size: clamp(3.8rem, 8vw, 7.5rem);
    font-weight: 700; line-height: .92; color: var(--white);
    margin-bottom: 20px; letter-spacing: -.01em;
    animation: fadeUp .8s ease .6s both;
}
.hero-title em { color: var(--gold); font-style: italic; display: block; text-align: center; margin-top: -0.15em; }
.hero-sub {
    font-size: 1.05rem; color: rgba(255,255,255,.72);
    max-width: 480px; margin-bottom: 36px; font-weight: 300; line-height: 1.75;
    animation: fadeUp .8s ease .8s both;
    font-family: var(--font-b);
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; animation: fadeUp .8s ease 1s both; }

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 30px; font-family: var(--font-b); font-size: .8rem;
    font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    cursor: pointer; border: none; border-radius: var(--r); transition: var(--tr);
}
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--gold-l); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(201,169,74,.4); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.45); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.hero-scroll { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 2; }
.scroll-line { width: 1px; height: 58px; background: linear-gradient(to bottom, var(--gold), transparent); animation: scrollPulse 2s ease infinite; }
@keyframes scrollPulse { 0%,100%{opacity:1;transform:scaleY(1)} 50%{opacity:.4;transform:scaleY(.7)} }

/* ---- STATS BAR ---- */
.stats-bar { background: var(--gold); }
.stats-inner {
    max-width: 1180px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-around; flex-wrap: wrap;
}
.stat-item { display: flex; flex-direction: column; align-items: center; padding: 26px 18px; gap: 3px; }
.stat-num { font-family: var(--font-d); font-size: 2.5rem; font-weight: 700; color: var(--black); line-height: 1; }
.stat-lbl { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(0,0,0,.6); }
.stat-div { width: 1px; height: 48px; background: rgba(0,0,0,.2); }

/* ---- SECTION COMMONS ---- */
.sec-label { font-size: .7rem; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.sec-title { font-family: var(--font-d); font-size: clamp(2.1rem, 3.5vw, 3rem); font-weight: 600; color: var(--white); line-height: 1.1; margin-bottom: 18px; letter-spacing: -.01em; }
.sec-title em { font-style: italic; color: var(--gold); }
.sec-header { text-align: center; margin-bottom: 56px; }
.sec-desc { color: var(--gray-l); max-width: 520px; margin: 0 auto; font-size: .93rem; }

/* ---- ABOUT ---- */
.about {
    padding: 96px 0; background: var(--dark);
    position: relative;
}
.about::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 1px; background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }

.about-images { position: relative; height: 500px; }
.about-img-main {
    position: absolute; top: 0; left: 0; width: 80%; height: 80%;
    border-radius: var(--rl); overflow: hidden; box-shadow: var(--shadow);
}
.about-img-main img { width: 100%; height: 100%; object-fit: cover; }
.about-img-sec {
    position: absolute; bottom: 0; right: 0; width: 50%; height: 50%;
    border-radius: var(--rl); overflow: hidden;
    border: 4px solid var(--dark); box-shadow: var(--shadow);
}
.about-img-sec img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
    position: absolute; top: 56%; left: 56%;
    transform: translate(-50%, -50%);
    width: 98px; height: 98px; border-radius: 50%;
    background: var(--gold); border: 4px solid var(--dark);
    display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 2;
}
.badge-num { font-family: var(--font-d); font-size: 2rem; font-weight: 900; color: var(--black); line-height: 1; }
.badge-txt { font-size: .58rem; font-weight: 700; color: rgba(0,0,0,.7); text-align: center; line-height: 1.2; }

.about-text p { color: rgba(255,255,255,.68); margin-bottom: 14px; font-size: .93rem; }
.features { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.feat { display: flex; gap: 14px; align-items: flex-start; }
.feat-icon { color: var(--gold); font-size: 1rem; flex-shrink: 0; margin-top: 3px; }
.feat strong { display: block; font-size: .93rem; color: var(--white); margin-bottom: 1px; }
.feat span { font-size: .8rem; color: var(--gray-l); }

/* ---- PROJECTS ---- */
.projects { padding: 96px 0; background: var(--dark2); position: relative; }

.filter-tabs { display: flex; gap: 9px; flex-wrap: wrap; justify-content: center; margin-bottom: 44px; }
.ftab {
    background: transparent; border: 1.5px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.55); font-family: var(--font-b); font-size: .75rem;
    font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
    padding: 8px 20px; border-radius: 100px; cursor: pointer; transition: var(--tr);
}
.ftab:hover, .ftab.active { background: var(--gold); border-color: var(--gold); color: var(--black); }

.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 26px; }

.proj-card {
    background: var(--dark3); border-radius: var(--rl);
    overflow: hidden; border: 1px solid rgba(255,255,255,.06);
    cursor: pointer; transition: var(--tr);
}
.proj-card:hover { transform: translateY(-6px); border-color: rgba(201,169,74,.3); box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.proj-card.hidden { display: none; }

.proj-thumb {
    position: relative; height: 215px; overflow: hidden;
    background: var(--dark3);
}
.proj-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.proj-card:hover .proj-thumb img { transform: scale(1.08); }

.proj-thumb-placeholder {
    width: 100%; height: 100%; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 12px;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
}
.proj-thumb-placeholder svg { opacity: .3; }
.proj-thumb-placeholder span { font-size: .72rem; color: rgba(255,255,255,.3); letter-spacing: .08em; }

.proj-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,.65);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: var(--tr);
}
.proj-card:hover .proj-overlay { opacity: 1; }
.proj-open-btn {
    display: flex; align-items: center; gap: 9px;
    background: var(--gold); color: var(--black); border: none;
    font-family: var(--font-b); font-size: .78rem; font-weight: 700;
    letter-spacing: .09em; text-transform: uppercase;
    padding: 11px 22px; border-radius: var(--r); cursor: pointer;
    transform: translateY(8px); transition: var(--tr);
}
.proj-card:hover .proj-open-btn { transform: translateY(0); }
.proj-count-badge {
    position: absolute; top: 10px; right: 10px;
    background: rgba(0,0,0,.75); color: var(--gold);
    font-size: .68rem; font-weight: 700; padding: 4px 10px;
    border-radius: 100px; border: 1px solid rgba(201,169,74,.3);
}

.proj-info { padding: 22px; }
.proj-cat { font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 8px; }
.proj-info h3 { font-family: var(--font-d); font-size: 1.1rem; font-weight: 600; color: var(--white); margin-bottom: 8px; line-height: 1.3; }
.proj-info p { font-size: .82rem; color: var(--gray-l); margin-bottom: 16px; line-height: 1.6; }
.proj-link {
    background: none; border: none; color: var(--gold);
    font-family: var(--font-b); font-size: .8rem; font-weight: 600;
    cursor: pointer; display: flex; align-items: center; gap: 6px; transition: var(--tr); padding: 0;
}
.proj-link:hover { gap: 12px; color: var(--gold-l); }

/* ---- MODAL ---- */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.92);
    z-index: 1000; display: flex; align-items: center; justify-content: center;
    padding: 16px; opacity: 0; pointer-events: none; transition: opacity .3s ease;
    backdrop-filter: blur(10px);
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal-box {
    background: var(--dark3); border-radius: var(--rl);
    width: 100%; max-width: 860px; max-height: 92vh; overflow-y: auto;
    position: relative; border: 1px solid rgba(201,169,74,.2);
    transform: scale(.96) translateY(16px);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.modal-overlay.active .modal-box { transform: scale(1) translateY(0); }

.modal-close {
    position: absolute; top: 14px; right: 16px; z-index: 10;
    background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.15);
    color: var(--white); width: 36px; height: 36px; border-radius: 50%;
    font-size: .95rem; cursor: pointer; transition: var(--tr);
    display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }

/* Slider */
.modal-slider-wrap {
    position: relative; width: 100%; height: 420px;
    background: #000; border-radius: var(--rl) var(--rl) 0 0; overflow: hidden;
}
.modal-slides { display: flex; height: 100%; transition: transform .45s cubic-bezier(.4,0,.2,1); }
.modal-slide { min-width: 100%; height: 100%; flex-shrink: 0; }
.modal-slide img { width: 100%; height: 100%; object-fit: cover; }

.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,.6); border: 1.5px solid rgba(255,255,255,.2);
    color: var(--white); width: 46px; height: 46px; border-radius: 50%;
    font-size: 1.6rem; cursor: pointer; transition: var(--tr); z-index: 5;
    display: flex; align-items: center; justify-content: center; line-height: 1;
}
.slider-arrow.left { left: 14px; }
.slider-arrow.right { right: 14px; }
.slider-arrow:hover { background: var(--gold); color: var(--black); border-color: var(--gold); transform: translateY(-50%) scale(1.08); }
.slider-arrow:disabled { opacity: .5; cursor: pointer; }

/* Autoplay progress bar */
.autoplay-bar {
    position: absolute; bottom: 0; left: 0; width: 0; height: 3px;
    background: var(--gold); z-index: 10; transition: none;
}
.autoplay-bar.animating {
    width: 100%; transition: width 3s linear;
}

.slider-counter {
    position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
    background: rgba(0,0,0,.7); color: var(--white);
    font-size: .72rem; font-weight: 600; padding: 5px 14px; border-radius: 100px;
    letter-spacing: .08em;
}

/* Modal info & thumbs */
.modal-info { padding: 24px 28px 0; }
.modal-info .proj-cat { margin-bottom: 10px; }
.modal-info h2 { font-family: var(--font-d); font-size: 1.55rem; color: var(--white); margin-bottom: 12px; line-height: 1.2; }
.modal-meta { display: flex; gap: 20px; flex-wrap: wrap; background: rgba(255,255,255,.04); border-radius: 8px; padding: 16px; margin-bottom: 14px; }
.meta-it { display: flex; flex-direction: column; gap: 3px; }
.meta-lbl { font-size: .67rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.meta-val { font-size: .85rem; color: var(--white); font-weight: 500; }
.modal-info p { font-size: .88rem; color: rgba(255,255,255,.68); line-height: 1.75; }

.modal-thumbs {
    display: flex; gap: 8px; padding: 16px 28px 28px;
    overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--gold) transparent;
}
.modal-thumbs::-webkit-scrollbar { height: 4px; }
.modal-thumbs::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }
.mthumb {
    min-width: 72px; height: 52px; border-radius: 5px; overflow: hidden;
    cursor: pointer; border: 2px solid transparent; transition: var(--tr); flex-shrink: 0;
}
.mthumb img { width: 100%; height: 100%; object-fit: cover; }
.mthumb.active { border-color: var(--gold); }
.mthumb:hover { border-color: rgba(201,169,74,.6); transform: scale(1.06); }

/* ---- CONTACT ---- */
.contact { padding: 96px 0; background: var(--dark); position: relative; overflow: hidden; }
.contact::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(to right, transparent, var(--gold), transparent); }
.contact-shape { position: absolute; bottom: -200px; right: -200px; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(201,169,74,.04), transparent 70%); pointer-events: none; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-left { display: flex; flex-direction: column; gap: 18px; }

.ccard { display: flex; align-items: center; gap: 18px; background: var(--dark3); border: 1px solid rgba(255,255,255,.07); border-radius: var(--rl); padding: 22px; transition: var(--tr); }
.ccard:hover { border-color: rgba(201,169,74,.3); transform: translateX(4px); }
.ccard.primary { border-color: rgba(201,169,74,.22); background: linear-gradient(135deg, rgba(201,169,74,.07), var(--dark3)); }
.cavatar { width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color: var(--black); font-family: var(--font-d); font-size: 1rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.crole { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
.cname { font-size: .97rem; font-weight: 600; color: var(--white); margin-bottom: 7px; }
.cphone { display: flex; align-items: center; gap: 7px; font-size: .87rem; color: rgba(255,255,255,.7); transition: var(--tr); margin-top: 4px; }
.cphone:hover { color: var(--gold); }
.cphone-wa { color: #25D366 !important; }
.cphone-wa:hover { color: #1fba58 !important; }
.bedir-link { text-decoration: none; transition: var(--tr); }
.bedir-link strong { transition: var(--tr); }
.bedir-link:hover strong { color: #E1306C; }

.cdetails { background: var(--dark3); border: 1px solid rgba(255,255,255,.07); border-radius: var(--rl); overflow: hidden; }
.cdetail { display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-bottom: 1px solid rgba(255,255,255,.05); }
.cdetail:last-child { border-bottom: none; }
.cdetail svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.dlabel { display: block; font-size: .67rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
.cdetail a, .cdetail span:not(.dlabel) { font-size: .85rem; color: rgba(255,255,255,.7); line-height: 1.5; }
.cdetail a:hover { color: var(--gold); }

.contact-map { border-radius: var(--rl); overflow: hidden; height: 410px; border: 1px solid rgba(255,255,255,.08); }
.contact-map iframe { width: 100%; height: 100%; display: block; }

/* ---- FOOTER ---- */
.footer { background: var(--black); border-top: 1px solid rgba(201,169,74,.12); padding: 36px 0; }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-logo img { height: 48px; width: auto; object-fit: contain; }
.footer-mid { text-align: center; }
.footer-mid p { font-size: .78rem; color: rgba(255,255,255,.45); line-height: 1.6; }
.footer-addr { font-size: .72rem !important; color: rgba(255,255,255,.3) !important; }
.footer-credit { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.footer-credit span { font-size: .68rem; color: rgba(255,255,255,.32); }
.footer-credit strong { font-size: .82rem; color: var(--gold); letter-spacing: .07em; }

/* ---- ANIMATIONS ---- */
@keyframes fadeUp { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:translateY(0); } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .main-nav {
        position: fixed; top: 0; right: -100%; width: 72%; max-width: 300px;
        height: 100vh; background: rgba(10,10,10,.97);
        flex-direction: column; justify-content: center; gap: 28px; padding: 40px;
        transition: right .4s ease; border-left: 1px solid rgba(201,169,74,.2);
        backdrop-filter: blur(16px);
    }
    .main-nav.open { right: 0; }
    .main-nav a { font-size: 1.05rem; }

    .hero-content { flex-direction: column; align-items: center; text-align: center; gap: 28px; }
    .hero-right { align-items: center; }
    .hero-title { font-size: clamp(2.8rem, 10vw, 4.5rem); }
    .hero-logo { height: 130px; }
    .hero-btns { flex-direction: column; align-items: center; }

    .stats-inner { flex-wrap: wrap; }
    .stat-div { display: none; }
    .stat-item { width: 50%; border-right: 1px solid rgba(0,0,0,.15); }
    .stat-item:nth-child(even) { border-right: none; }

    .about-grid { grid-template-columns: 1fr; gap: 36px; }
    .about-images { height: 280px; }

    .proj-grid { grid-template-columns: 1fr; }
    .modal-slider-wrap { height: 260px; }
    .slider-arrow { width: 38px; height: 38px; font-size: 1.3rem; }

    .contact-grid { grid-template-columns: 1fr; }
    .contact-map { height: 280px; }

    .footer-inner { flex-direction: column; align-items: center; text-align: center; }
    .footer-credit { align-items: center; }
}
@media (max-width: 480px) {
    .hero { min-height: 580px; }
    .modal-thumbs { padding: 12px 16px 20px; }
    .modal-info { padding: 18px 18px 0; }
}
