/*
 Theme Name:   EMRCNDMGLTHEME
 Theme URI:    https://emrcndmgl.com/emrcndmgltheme
 Author:       Emircan Dumoğlu
 Author URI:   https://emircandumoglu.com
 Description:  Emircan Dumoğlu için hazırlanmış özel tema.
 Version:      1.0.0
 Tags:         portfilio, one-page, responsive.
 Requires at least: 6.0
 Tested up to: 6.6
 Requires PHP: 7.4
*/


/* ==========================
   RESET
   ========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==========================
   BODY
   ========================== */
body {
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
}

/* === SAYFA SAYFA SCROLL: body üzerinde scroll-snap === */

html,
body {
    scroll-snap-type: y mandatory; /* dikey eksende snap */
}

/* Snap uygulanacak bölümler */
.snap-section {
    scroll-snap-align: start;
    min-height: 100vh;
    position: relative;
    box-sizing: border-box;
}

/* Blur alacak ana container */
.page-content {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.page-content.blurred {
    filter: blur(8px);
    opacity: 0.5;
}


/* ==========================
   HEADER
   ========================== */
/* Header görünüyor ama arka plan tıklamayı engellemiyor */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    z-index: 1000;
    pointer-events: none; /* sadece içindeki elemanlar tıklanabilir */
}

/* Logo ve hamburger tıklanabilir olsun */
.logo,
.menu-toggle {
    pointer-events: auto;
}

/* Admin bar varsa header'ı aşağı it */
body.admin-bar .site-header {
    top: 32px;
}
@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

/* LOGO */
.logo img {
    width: 80px;
    height: auto;
}

.logo {
    transition: opacity 0.35s ease;
}

.logo.hide-logo {
    opacity: 0;
}

/* ==========================
   HAMBURGER
   ========================== */
.menu-toggle {
    width: 28px;
    height: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;

    z-index: 1001; /* side-menu'nin de üstünde, her zaman tıklanabilir */
}

.menu-toggle span {
    display: block;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Hamburger -> X animasyonu */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ==========================
   SIDE MENU
   ========================== */
.side-menu {
    position: fixed;
    right: -260px;
    top: 0;
    width: 260px;
    height: 100vh;

    padding: 120px 30px;

    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    transition: right 0.35s ease;

    z-index: 900; /* içerikten yukarıda, header arkadan sadece görsel */
}

.side-menu.active {
    right: 0;
}

.side-menu ul {
    list-style: none;
}

.side-menu li {
    margin-bottom: 25px;
}

.side-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    letter-spacing: 2px;
    transition: opacity 0.2s ease;
}

.side-menu a:hover {
    opacity: 0.7;
}

/* ==========================
   HERO
   ========================== */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Fotoğraf üzeri genel karartma */
.hero .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}

/* Alta doğru siyaha fade (geçiş çizgisini yok etmek için) */
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 220px;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 0%,
        #000 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* CENTER TEXT */
.hero-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 0 1.5rem;
    z-index: 2;
}

/* okunabilirliği artıran gölge */
.hero-center h1,
.hero-center p {
    text-shadow: 0 0 12px rgba(0,0,0,0.55);
}

/* Başlık: EMRCNDMGL */
.hero-center h1 {
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    font-weight: 700;
    letter-spacing: 0.16rem;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.05;
}

/* Alt metin */
.hero-center p {
    margin-top: 1.6rem;
    font-size: 0.85rem;
    letter-spacing: 0.22rem;
    opacity: 0.8;
}

/* Küçük ekranlarda biraz daha sadeleşsin */
@media (max-width: 768px) {
    .hero-center h1 {
        font-size: clamp(2.2rem, 9vw, 3.4rem);
        letter-spacing: 0.12rem;
    }

    .hero-center p {
        font-size: 0.75rem;
        letter-spacing: 0.18rem;
        margin-top: 1.2rem;
    }
}

/* HERO giriş animasyonu */
.hero-center {
    opacity: 0;
    transform: translate(-50%, -45%);
    animation: heroFadeUp 0.9s ease-out forwards;
    animation-delay: 0.15s;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* ==========================
   SOCIAL ICONS
   ========================== */
.social-icons {
    position: absolute;
    right: 40px;
    bottom: 40px;
    display: flex;
    flex-direction: row;
    gap: 16px;
    z-index: 2;
}

.social-icons .social-link {
    display: block;
    line-height: 0;
}

.social-icons img {
    display: block;
    width: 28px;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-icons img:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* ==========================
   SCROLL HINT
   ========================== */
.scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 32px;
    width: 20px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.4);
    transform: translateX(-50%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 4px;
    opacity: 0.6;
    z-index: 2;
}

.scroll-hint::before {
    content: "";
    width: 4px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.9);
    animation: scrollDot 1.3s ease-in-out infinite;
}

@keyframes scrollDot {
    0%   { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

/* ==========================
   SECTION GENEL
   ========================== */
.section {
    padding: 80px 0 96px;
    color: #f9f9f9;
    background: #000;
}

#tasarimlarim {
    padding-top: 56px;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================
   BAŞLIK
   ========================== */
.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    letter-spacing: 0.25rem;
    text-transform: uppercase;
    color: #ffffff;
    margin: 48px 0 40px;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 72px;
    height: 2px;
    margin: 18px auto 0;
    background: rgba(255,255,255,0.35);
    border-radius: 999px;
}

/* ==========================
   GRID
   ========================== */
.works-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.work-item {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* ==========================
   KART
   ========================== */
.work-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.06);
    background: #050505;
}

/* RESİM */
.work-thumb img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease, opacity 0.4s ease;
}

/* PLACEHOLDER */
.work-thumb-placeholder {
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    opacity: 0.6;
    padding: 0 1rem;
    text-align: center;
}

/* OVERLAY */
.work-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease, background 0.25s ease;
    text-align: center;
    padding: 0 1rem;
}

.work-overlay h3 {
    font-size: 1rem;
    letter-spacing: 0.08rem;
}

/* HOVER */
.work-item:hover .work-thumb img {
    transform: scale(1.05);
    filter: grayscale(0.2);
    opacity: 0.9;
}

.work-item:hover .work-overlay {
    opacity: 1;
    background: rgba(255,255,255,0.18);
}

/* ==========================
   "İçerik yok" yazısı
   ========================== */
.no-works {
    text-align: center;
    opacity: 0.6;
    font-size: 0.9rem;
}

/* ==========================
   WORK MODAL (ÖNİZLEME)
   ========================== */
.work-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 11000;
}

.work-modal.open {
    display: flex;
}

.work-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    opacity: 0;
    transition: opacity 0.35s ease;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.work-modal.open .work-modal-backdrop {
    opacity: 1;
}

.work-modal-inner {
    position: relative;
    max-width: 900px;
    width: 90%;
    max-height: 80vh;

    background: rgba(10,10,10,0.95);
    border-radius: 1.5rem;
    border: 1px solid rgba(255,255,255,0.08);

    box-shadow: 0 20px 45px rgba(0,0,0,0.7);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1;

    opacity: 0;
    transform: translateY(-20px) scale(1.02);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.work-modal.open .work-modal-inner {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.work-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    z-index: 2;
}

.work-modal-close:hover {
    opacity: 1;
}

.work-modal-image-wrap {
    width: 100%;
    max-height: 55vh;
    overflow: hidden;
    background: #000;
}

.work-modal-image-wrap img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.work-modal-content {
    padding: 18px 22px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

#workModalTitle {
    font-size: 1rem;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
}

.work-modal-button {
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.35);
    background: transparent;
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.work-modal-button:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* ==========================
   HAKKIMDA - GENEL YAPI
   ========================== */
.about-section {
    width: 100%;
    padding: 100px 0;
}

.about-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: stretch;
    gap: 40px;
}

/* SOL - GÖRSEL */
.about-image-wrapper {
    flex: 0.9;
    display: flex;
    align-items: center;
}

.about-image-inner {
    width: 100%;
    max-height: 500px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background: transparent;
    padding: 0;
    transform: translateY(0);
    opacity: 1;
    transition: opacity 1.4s cubic-bezier(.22,.61,.36,1),
                transform 1.4s cubic-bezier(.22,.61,.36,1);
}

.about-image-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* SAĞ - YAZI */
.about-text-wrapper {
    flex: 1.1;
    border-radius: 18px;
    display: flex;
    border: 1px solid rgba(255,255,255,0.08);
}

.about-text-card {
    width: 100%;
    backdrop-filter: blur(6px);
    padding: 28px 32px;
    transform: translateY(0);
    opacity: 1;
    transition: opacity 1.4s cubic-bezier(.22,.61,.36,1),
                transform 1.4s cubic-bezier(.22,.61,.36,1);
}

.about-text-card h2 {
    font-size: 2rem;
    margin-bottom: 18px;
    letter-spacing: 0.2rem;
}

.about-text-card p {
    margin-bottom: 14px;
    line-height: 1.6;
    opacity: 0.85;
}

/* ==========================
   TASARIMLARIM & İLETİŞİM ANİMASYONLARI
   (Hakkımda ile aynı mantık)
   ========================== */

/* Tasarımlarım grid ve İletişim içeriği de yumuşak giriş yapsın */
.works-grid,
.contact-inner {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1.1s cubic-bezier(.22,.61,.36,1),
                transform 1.1s cubic-bezier(.22,.61,.36,1);
}

/* Scroll öncesi: tüm animasyonlu bloklar görünmez */
.before-animate {
    opacity: 0 !important;
    transform: translateY(25px) !important;
}

/* ==========================
   RESPONSIVE
   ========================== */
@media (max-width: 900px) {
    .works-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .work-thumb img,
    .work-thumb-placeholder {
        height: 220px;
    }

    .site-header {
        padding: 20px 20px;
    }

    .about-inner {
        flex-direction: column;
        gap: 32px;
    }

    .about-image-inner {
        max-height: 320px;
    }
}

@media (max-width: 600px) {
    .works-grid {
        grid-template-columns: 1fr;
    }

    .work-thumb img,
    .work-thumb-placeholder {
        height: 210px;
    }

    .social-icons {
        right: 20px;
        bottom: 20px;
    }

    .work-modal-inner {
        width: 92%;
        max-height: 85vh;
        border-radius: 1.1rem;
    }

    .work-modal-content {
        flex-direction: column;
        align-items: flex-start;
    }

    #workModalTitle {
        font-size: 0.9rem;
        letter-spacing: 0.1rem;
    }

    .work-modal-button {
        width: 100%;
        text-align: center;
    }
}

/* ==========================
   İLETİŞİM BÖLÜMÜ
   ========================== */

.contact-section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 90px 0 40px;
    background:
        radial-gradient(circle at top left, rgba(255, 210, 120, 0.10),
                        #050505 65%);
    color: #f9f9f9;
}

.contact-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 56px;
}

/* SOL TARAF (METİN) */

.contact-text {
    flex: 1;
}

.contact-title {
    font-size: clamp(2rem, 3vw, 2.6rem);
    letter-spacing: 0.25rem;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.contact-lead {
    max-width: 520px;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.85;
    margin-bottom: 28px;
}

/* Buton benzeri satırlar */

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(5,5,8,0.7);

    text-decoration: none;
    color: #f9f9f9;
    font-size: 0.82rem;
    letter-spacing: 0.12rem;
    text-transform: uppercase;

    transition: border-color 0.2s ease,
                background 0.2s ease,
                transform 0.2s ease,
                box-shadow 0.2s ease;
}

.contact-label {
    opacity: 0.6;
}

.contact-value {
    font-weight: 500;
}

/* Hover efekti */

.contact-item:hover {
    border-color: rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.04);
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.55);
}

/* SAĞ TARAF (GÖRSEL) */

.contact-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
}

.contact-image-inner {
    border-radius: 22px;
    overflow: hidden;
    max-width: 480px;
    box-shadow: 0 22px 55px rgba(0,0,0,0.85);
    border: 1px solid rgba(255,255,255,0.1);
}

.contact-image-inner img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* FOOTER YAZISI */

.contact-footer {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 40px 8px;
    font-size: 0.75rem;
    letter-spacing: 0.18rem;
    text-transform: uppercase;
    opacity: 0.55;
    text-align: left;      /* istersen center da yapabilirsin */
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .contact-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 24px;
    }

    .contact-image-wrapper {
        width: 100%;
    }

    .contact-image-inner {
        max-width: 100%;
    }

    .contact-footer {
        padding: 24px 24px 8px;
        text-align: center;
    }
}

/* TASARIMLARIM – hafif sıcak/kızıl vurgu */
#tasarimlarim {
    padding-top: 56px;
    background:
        radial-gradient(circle at top left, rgba(255, 120, 80, 0.10), #050505 60%);
}

/* HAKKIMDA – biraz soğuk/mavi vurgu */
#hakkimda {
    background:
        radial-gradient(circle at top right, rgba(120, 180, 255, 0.12), #050505 60%);
}
/* ==========================
   404 SAYFASI
   ========================== */

.not-found-section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    background:
        radial-gradient(circle at top, rgba(255, 180, 120, 0.10),
        #050505 70%);
}

.not-found-inner {
    padding: 0 24px;
}

.not-found-code {
    font-size: clamp(4rem, 12vw, 7rem);
    font-weight: 800;
    letter-spacing: 0.35rem;
    text-transform: uppercase;
}

.not-found-text {
    margin-top: 18px;
    font-size: 1rem;
    opacity: 0.8;
}

.not-found-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 28px;
    padding: 12px 36px;

    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.45);
    background: rgba(5,5,8,0.8);

    font-size: 0.85rem;
    letter-spacing: 0.16rem;
    text-transform: uppercase;
    text-decoration: none;

    color: #f9f9f9;

    transition: background 0.2s ease,
                border-color 0.2s ease,
                transform 0.2s ease,
                box-shadow 0.2s ease;
}

.not-found-button:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.75);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.75);
}
