/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

:root {
    /* LIGHT THEME (Default) */
    --bg: #f4f1ec;
    --text: #241a16;
    --soft: #6b5a4e;
    --accent: #8b5e3c;
    --line: rgba(0, 0, 0, 0.08);

    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-hover-bg: rgba(255, 255, 255, 0.7);
    --header-bg: rgba(244, 241, 236, 0.65);

    --input-bg: rgba(255, 255, 255, 0.5);
    --input-focus: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] {
    --bg: #111111;
    --text: #eaeaea;
    --soft: #999999;
    --accent: #c69c6d;
    /* Lighter/Gold-ish for contrast */
    --line: rgba(255, 255, 255, 0.1);

    --glass-bg: rgba(30, 30, 30, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover-bg: rgba(40, 40, 40, 0.6);
    --header-bg: rgba(17, 17, 17, 0.65);

    --input-bg: rgba(0, 0, 0, 0.3);
    --input-focus: rgba(0, 0, 0, 0.5);
}

html,
body {
    height: 100%;
    overflow-x: hidden;
    /* Fix horizontal scroll */
}

body {
    font-family: "Inter", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: background 0.3s ease, color 0.3s ease;
}

/* HEADER */
.site-header {
    position: absolute;
    /* fixed değil */
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;

    background: var(--header-bg);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);

    z-index: 100;
    /* Increased to stay above mobile nav */

    /* giriş animasyonu */
    transform: translateY(-10px);
    opacity: 0;
    animation: headerIn 520ms ease forwards;
}

@keyframes headerIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-inner {
    max-width: 1200px;
    height: 100%;
    margin: auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    position: relative;
    text-decoration: none;
    font-size: 14px;
    color: var(--soft);
    letter-spacing: 0.6px;
    padding: 10px 2px;
    transition: color 220ms ease, transform 220ms ease;
}

.nav a:hover {
    color: var(--accent);
    transform: translateY(-1px);
}

.nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transform: translateX(-50%);
    transition: width 220ms ease;
    opacity: 0.9;
}

.nav a:hover::after {
    width: 100%;
}


.lang-switch {
    font-size: 13px;
    display: flex;
    gap: 6px;
}

.lang-switch button,
.lang-switch a {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--soft);
    text-decoration: none;
}

.lang-switch .active {
    color: var(--accent);
    font-weight: 600;
}

/* HERO */
.hero-wrap {
    height: 100vh;
    display: flex;
}

.hero {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    flex: 1;
}

.hero-text {
    max-width: 600px;
}

.hero-text h1 {
    font-size: 48px;
    line-height: 1.15;
    font-weight: 600;
}

.hero-text p {
    margin-top: 20px;
    font-size: 17px;
    color: var(--soft);
    line-height: 1.6;
}

.hero-actions {
    margin-top: 32px;
    display: flex;
    gap: 16px;
}

/*btn */

.btn {
    padding: 14px 26px;
    font-size: 14px;
    text-decoration: none;
    border-radius: 8px;
}

/* BUTTON micro-interactions */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
    will-change: transform;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}


.primary {
    background: var(--accent);
    color: #fff;
}

.secondary {
    border: 1px solid var(--line);
    color: var(--text);
}

/* IMAGE */
.hero-image img {
    width: 320px;
    opacity: 0.95;
    filter: saturate(0.9);
}

/* HERO giriş animasyonu */
.hero-text,
.hero-image {
    opacity: 0;
    transform: translateY(10px);
    animation: heroIn 750ms ease forwards;
}

.hero-text {
    animation-delay: 120ms;
}

.hero-micro {
    margin-top: 14px;
    font-size: 13px;
    color: var(--soft);
    opacity: 0.9;
}

.hero-trust {
    margin-top: 14px;
    font-size: 13px;
    color: var(--soft);
    opacity: 0.9;
}


.hero-image {
    animation-delay: 240ms;
}

/* IMAGE - very subtle breathing */
.hero-image img {
    animation: breathe 6s ease-in-out infinite;
    filter: saturate(0.92) contrast(0.98);
}

.hero-image img {
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10);
}


/* Dil değişimi */
.text-switch {
    opacity: 0.55;
    transform: translateY(1px);
    transition: opacity 140ms ease, transform 140ms ease;
}

/* Soft dil geçişi - sadece metin */
[data-en] {
    transition: opacity 220ms ease, transform 220ms ease;
    will-change: opacity, transform;
}

.lang-out {
    opacity: 0;
    transform: translateY(2px);
}

.lang-in {
    opacity: 1;
    transform: translateY(0);
}


@keyframes breathe {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}


@keyframes heroIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* WORK PAGE */
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    margin-top: 0;
    /* Align with center */
}

.work-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 32px;
    text-decoration: none;
    color: var(--text);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 320px;
    /* Fixed height to fit screen */
}

.work-card:hover {
    transform: translateY(-8px);
    background: var(--glass-hover-bg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border-color: var(--glass-border);
    z-index: 1;
}

.work-cat {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 12px;
    display: block;
}

.work-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.work-desc {
    font-size: 14px;
    color: var(--soft);
    line-height: 1.6;
    margin-bottom: auto;
}

.work-link {
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.8;
    transition: gap 0.2s ease, opacity 0.2s ease;
    margin-top: 24px;
}

.work-card:hover .work-link {
    gap: 10px;
    opacity: 1;
    color: var(--accent);
}

/* Stagger animation */
.work-card {
    opacity: 0;
    transform: translateY(20px);
    animation: cardIn 600ms ease forwards;
}

.work-card:nth-child(1) {
    animation-delay: 150ms;
}

.work-card:nth-child(2) {
    animation-delay: 300ms;
}

.work-card:nth-child(3) {
    animation-delay: 450ms;
}

@keyframes cardIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE WORK */
@media (max-width: 900px) {
    .work-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        height: auto;
        overflow-y: auto;
        /* Allow scroll inside grid if needed on mobile */
        max-height: 80vh;
        padding-bottom: 20px;
    }

    .work-card {
        height: auto;
        min-height: 200px;
        padding: 24px;
    }
}

/* APPROACH PAGE */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

.approach-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 32px;
    color: var(--text);
    position: relative;
    height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s ease;
}

.approach-card:hover {
    transform: translateY(-5px);
    background: var(--glass-hover-bg);
}

.approach-num {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 56px;
    /* Slightly larger */
    font-weight: 800;
    color: var(--accent);
    opacity: 0.25;
    /* Increased opacity from 0.1 */
    line-height: 1;
    font-family: system-ui, sans-serif;
    /* Monospace vibe */
}

.approach-icon {
    margin-bottom: 20px;
    width: 48px;
    height: 48px;
    color: var(--accent);
    opacity: 0.9;
}

.approach-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.approach-desc {
    font-size: 14px;
    color: var(--soft);
    line-height: 1.6;
}

/* Stagger animation for approach */
.approach-card {
    opacity: 0;
    transform: translateY(20px);
    animation: cardIn 600ms ease forwards;
}

.approach-card:nth-child(1) {
    animation-delay: 150ms;
}

.approach-card:nth-child(2) {
    animation-delay: 300ms;
}

.approach-card:nth-child(3) {
    animation-delay: 450ms;
}

/* RESPONSIVE APPROACH */
@media (max-width: 900px) {
    .approach-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        overflow-y: auto;
        max-height: 80vh;
        padding-bottom: 20px;
        display: block;
        /* Stack blocks */
    }

    .approach-card {
        height: auto;
        min-height: 180px;
        margin-bottom: 16px;
    }
}


/* CONTACT PAGE */
.contact-container {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    width: 100%;
}

.contact-info {
    flex: 1;
    max-width: 400px;
}

.contact-form-wrap {
    flex: 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 40px;
}

.contact-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--soft);
}

.contact-input,
.contact-textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--input-bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text);
    margin-bottom: 20px;
    transition: 0.2s ease;
}

.contact-input:focus,
.contact-textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--input-focus);
}

.contact-textarea {
    min-height: 120px;
    resize: vertical;
}

.social-links {
    margin-top: 32px;
    display: flex;
    gap: 16px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    padding: 12px 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 14px;
    transition: 0.2s ease;
}

.social-btn:hover {
    background: #fff;
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* PROJECT DETAIL PAGE */
.project-header {
    margin-bottom: 40px;
}

.project-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--soft);
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 40px;
    line-height: 1.8;
    color: var(--text);
}

.project-content h3 {
    margin-top: 32px;
    margin-bottom: 16px;
    font-size: 20px;
}

.project-content p {
    margin-bottom: 20px;
}

.back-link,
.project-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--soft);
    margin-bottom: 30px;
    font-size: 14px;
    transition: 0.2s;
}

.back-link:hover,
.project-back:hover {
    color: var(--accent);
    transform: translateX(-4px);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .contact-container {
        flex-direction: column;
        gap: 40px;
    }

    .contact-info,
    .contact-form-wrap {
        max-width: 100%;
        width: 100%;
    }
}

/* MOBILE */
/* MOBILE NAV & RESPONSIVE */

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 16px;
    z-index: 100;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: 0.3s ease;
}

.mobile-nav {
    position: fixed;
    top: 70px;
    /* Header height */
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 60px;
    gap: 32px;
    transform: translateX(100%);
    /* Hidden by default */
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 90;
    /* Below header (100) but above content */
}

.mobile-nav.is-open {
    transform: translateX(0);
}

.mobile-nav a {
    font-size: 24px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text);
    opacity: 0;
    transform: translateY(20px);
    transition: 0.3s ease;
}

.mobile-nav.is-open a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav.is-open a:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-nav.is-open a:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-nav.is-open a:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-nav.is-open a:nth-child(4) {
    transition-delay: 0.4s;
}


@media (max-width: 900px) {

    html,
    body {
        overflow-y: auto;
        height: auto;
    }

    .nav {
        display: none;
        /* Hide Desktop Nav */
    }

    .mobile-toggle {
        display: flex;
        /* Show Hamburger */
    }

    /* HERO */
    .hero-wrap {
        height: auto;
        min-height: 100vh;
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero {
        flex-direction: column-reverse;
        /* Text bottom, Image top */
        justify-content: center;
        text-align: center;
        gap: 40px;
    }

    .hero-text {
        width: 100%;
    }

    .hero-text h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-image img {
        width: 220px;
    }

    /* CONTACT */
    .contact-container {
        flex-direction: column;
        gap: 40px;
    }

    .contact-info,
    .contact-form-wrap {
        max-width: 100%;
        width: 100%;
    }

    .header-inner {
        padding: 0 20px;
    }

    /* PROJECT PAGE */
    .project-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
/* HERO kimlik bloğu — isim aramaları için H1 artık isim, slogan H2 */
.hero-text .hero-eyebrow {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.95;
}

.hero-text .hero-tagline {
    margin-top: 12px;
    font-size: 26px;
    line-height: 1.3;
    font-weight: 500;
    color: var(--soft);
}

.hero-text .hero-founder {
    margin-top: 14px;
    font-size: 14px;
}

.hero-text .hero-founder a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 2px;
    transition: border-color 0.2s ease;
}

.hero-text .hero-founder a:hover {
    border-bottom-color: var(--accent);
}

@media (max-width: 768px) {
    .hero-text .hero-tagline {
        font-size: 20px;
    }
}

/* ============================================================
   BLOG
   ============================================================ */

/* --- Liste --- */
.blog-list {
    display: grid;
    gap: 22px;
}

.blog-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: center;
    padding: 18px;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.blog-card:hover {
    transform: translateY(-3px);
    background: var(--glass-hover-bg);
    border-color: var(--accent);
}

.blog-card-cover {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.blog-card-text h2 {
    margin-top: 10px;
    font-size: 21px;
    line-height: 1.3;
    font-weight: 600;
}

.blog-card-text p {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--soft);
}

.blog-card-text .work-link {
    margin-top: 14px;
}

/* --- Yazı meta satırı --- */
.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: var(--soft);
}

/* --- Yazı sayfası --- */
.post-header {
    margin-top: 22px;
}

.post-title {
    margin-top: 14px;
    font-size: 40px;
    line-height: 1.2;
    font-weight: 700;
}

.post-lead {
    margin-top: 16px;
    font-size: 18px;
    line-height: 1.6;
    color: var(--soft);
}

.post-cover {
    width: 100%;
    height: auto;
    margin-top: 32px;
    border-radius: 14px;
    display: block;
}

/* --- Yazı gövdesi tipografisi --- */
.post-body {
    margin-top: 36px;
    font-size: 17px;
    line-height: 1.75;
}

.post-body p {
    margin-top: 18px;
    color: var(--text);
}

.post-body h2 {
    margin-top: 44px;
    font-size: 27px;
    line-height: 1.3;
    font-weight: 700;
}

.post-body h3 {
    margin-top: 32px;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 600;
}

.post-body ul,
.post-body ol {
    margin-top: 18px;
    padding-left: 24px;
}

.post-body li {
    margin-top: 10px;
    line-height: 1.7;
}

.post-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-body code {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.9em;
    padding: 2px 6px;
    border-radius: 5px;
    background: var(--glass-bg);
    border: 1px solid var(--line);
}

.post-body pre {
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.6;
}

.post-body pre code {
    border: none;
    background: none;
    padding: 0;
}

.post-body strong {
    font-weight: 600;
}

/* --- Yazı sonu CTA --- */
.post-cta {
    margin-top: 56px;
    padding: 32px;
    border-radius: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.post-cta h2 {
    font-size: 23px;
    font-weight: 600;
}

.post-cta p {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--soft);
}

/* --- İlgili yazılar --- */
.post-related {
    margin-top: 56px;
}

.post-related > h2 {
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.related-card {
    display: block;
    padding: 20px;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.related-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
}

.related-card h3 {
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
}

.related-read {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    color: var(--soft);
}

@media (max-width: 820px) {
    .related-grid {
        grid-template-columns: 1fr;
    }

    .blog-card {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .post-title {
        font-size: 30px;
    }

    .post-lead {
        font-size: 16px;
    }

    .post-body {
        font-size: 16px;
    }

    .post-body h2 {
        font-size: 23px;
    }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    border-top: 1px solid var(--line);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    margin-top: 80px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 32px 36px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.footer-name {
    font-size: 17px;
    font-weight: 600;
}

.footer-role {
    margin-top: 6px;
    font-size: 14px;
    color: var(--soft);
}

.footer-note {
    margin-top: 12px;
    font-size: 14px;
}

.footer-note a {
    color: var(--accent);
    text-decoration: none;
}

.footer-note a:hover {
    text-decoration: underline;
}

.footer-nav,
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a,
.footer-social a {
    font-size: 14px;
    color: var(--soft);
    text-decoration: none;
    transition: color 0.2s ease;
    width: fit-content;
}

.footer-nav a:hover,
.footer-social a:hover {
    color: var(--accent);
}

.footer-copy {
    grid-column: 1 / -1;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--soft);
    opacity: 0.8;
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 36px 24px 28px;
    }
}
