/* Güncel Projeler — Modern Liquid / Glass tasarım */

:root {
    --cp-brand: #491720;
    --cp-brand-dark: #1a0a0e;
    --cp-brand-mid: #5a1f28;
    --cp-cream: rgba(255, 252, 248, 0.88);
    --cp-gold: #c4a052;
    --cp-gold-light: #e8d5a8;
    --cp-text: #2a1520;
    --cp-text-muted: #6b5a62;
    --cp-glass: rgba(255, 255, 255, 0.12);
    --cp-glass-border: rgba(255, 255, 255, 0.22);
    --cp-blur: 20px;
}

/* ── Bölüm kabuğu ── */
.cp-projects-wrap {
    position: relative;
    height: auto !important;
    min-height: 0 !important;
    padding: clamp(72px, 10vw, 112px) 0 clamp(80px, 11vw, 120px);
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 20% 20%, rgba(196, 160, 82, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 85% 75%, rgba(120, 40, 60, 0.35) 0%, transparent 50%),
        linear-gradient(155deg, #1a0a0e 0%, #491720 38%, #3d1520 68%, #2f0f16 100%);
}

.cp-projects-wrap.second-container {
    background-color: transparent;
    width: 100%;
    height: auto !important;
}

/* Animasyonlu liquid bloblar */
.cp-liquid-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.cp-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    will-change: transform;
}

.cp-blob-1 {
    width: min(520px, 55vw);
    height: min(520px, 55vw);
    top: -12%;
    left: -8%;
    background: radial-gradient(circle, rgba(196, 160, 82, 0.45) 0%, rgba(196, 160, 82, 0) 70%);
    animation: cpBlobFloat1 18s ease-in-out infinite;
}

.cp-blob-2 {
    width: min(420px, 48vw);
    height: min(420px, 48vw);
    top: 35%;
    right: -10%;
    background: radial-gradient(circle, rgba(180, 80, 100, 0.4) 0%, transparent 70%);
    animation: cpBlobFloat2 22s ease-in-out infinite;
}

.cp-blob-3 {
    width: min(360px, 40vw);
    height: min(360px, 40vw);
    bottom: -5%;
    left: 25%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    animation: cpBlobFloat3 20s ease-in-out infinite;
}

.cp-blob-4 {
    width: min(280px, 32vw);
    height: min(280px, 32vw);
    top: 55%;
    left: 8%;
    background: radial-gradient(circle, rgba(196, 160, 82, 0.25) 0%, transparent 70%);
    animation: cpBlobFloat2 16s ease-in-out infinite reverse;
}

@keyframes cpBlobFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, 30px) scale(1.08); }
    66% { transform: translate(-20px, 50px) scale(0.95); }
}

@keyframes cpBlobFloat2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-35px, -40px) rotate(8deg); }
}

@keyframes cpBlobFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -25px) scale(1.12); }
}

/* Dalga geçişleri */
.cp-liquid-wave {
    position: absolute;
    left: 0;
    width: 100%;
    height: 64px;
    pointer-events: none;
    z-index: 2;
}

.cp-liquid-wave--top {
    top: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath fill='%231a0a0e' fill-opacity='0.35' d='M0,32 C360,64 720,0 1080,32 C1260,48 1380,40 1440,32 L1440,0 L0,0 Z'/%3E%3C/svg%3E") center top / 100% 100% no-repeat;
}

.cp-liquid-wave--bottom {
    bottom: 0;
    height: 72px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 72' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' fill-opacity='0.04' d='M0,24 C480,72 960,0 1440,36 L1440,72 L0,72 Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}

.cp-section {
    position: relative;
    z-index: 1;
    width: 100% !important;
    height: auto !important;
    top: 0 !important;
    left: 0 !important;
    display: block !important;
    padding: 0 clamp(20px, 5vw, 72px);
}

.cp-section-inner {
    max-width: 1280px;
    margin: 0 auto;
}

/* ── Başlık ── */
.cp-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px 32px;
    margin-bottom: clamp(40px, 6vw, 56px);
    flex-wrap: wrap;
}

.cp-section-heading {
    flex: 1 1 280px;
    min-width: 0;
}

.cp-section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    padding: 6px 16px 6px 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--cp-gold-light);
    background: var(--cp-glass);
    border: 1px solid var(--cp-glass-border);
    border-radius: 999px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.cp-section-eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cp-gold), #fff);
    box-shadow: 0 0 12px rgba(196, 160, 82, 0.6);
}

.cp-section-title {
    margin: 0 0 16px;
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -1px;
    color: #fff;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.85) 50%, var(--cp-gold-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cp-section-lead {
    margin: 0;
    max-width: 540px;
    font-size: clamp(15px, 1.7vw, 18px);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
}

.cp-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    padding: 16px 32px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.06) 100%);
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-decoration: none !important;
    text-transform: uppercase;
    backdrop-filter: blur(var(--cp-blur));
    -webkit-backdrop-filter: blur(var(--cp-blur));
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, background 0.35s ease;
    position: relative;
    overflow: hidden;
}

.cp-view-all-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.15) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.cp-view-all-btn:hover {
    transform: translateY(-3px) scale(1.02);
    background: linear-gradient(135deg, rgba(196, 160, 82, 0.35) 0%, rgba(196, 160, 82, 0.15) 100%);
    border-color: rgba(196, 160, 82, 0.5);
    box-shadow: 0 16px 40px rgba(196, 160, 82, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: #fff !important;
}

.cp-view-all-btn:hover::before {
    transform: translateX(100%);
}

.cp-view-all-icon {
    font-size: 18px;
    line-height: 1;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cp-view-all-btn:hover .cp-view-all-icon {
    transform: translateX(5px);
}

/* ── Kart grid ── */
.cp-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: clamp(24px, 3vw, 32px);
}

.cp-cards-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 56px 32px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    background: var(--cp-glass);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%;
    backdrop-filter: blur(12px);
}

/* ── Liquid kart ── */
.cp-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border-radius: 28px 28px 32px 32px / 32px 32px 28px 28px;
    transition: transform 0.5s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.5s ease;
}

.cp-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.35), rgba(196, 160, 82, 0.2), rgba(255, 255, 255, 0.08));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.7;
    transition: opacity 0.4s ease;
}

.cp-card:hover {
    transform: translateY(-10px) scale(1.01);
}

.cp-card:hover::before {
    opacity: 1;
}

.cp-card-glow {
    position: absolute;
    inset: 20% 10% -20% 10%;
    background: radial-gradient(ellipse at center, rgba(196, 160, 82, 0.25) 0%, transparent 70%);
    filter: blur(24px);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.cp-card:hover .cp-card-glow {
    opacity: 1;
}

.cp-card-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: var(--cp-cream);
    backdrop-filter: blur(var(--cp-blur));
    -webkit-backdrop-filter: blur(var(--cp-blur));
    border-radius: inherit;
    overflow: hidden;
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.cp-card.is-hidden {
    display: none;
}

/* Görsel — organik alt kenar */
.cp-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #3d1520 0%, #6b3040 45%, #2a0e14 100%);
    clip-path: ellipse(120% 100% at 50% 0%);
    margin-bottom: -1px;
}

.cp-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cp-card-image--placeholder {
    background:
        linear-gradient(180deg, rgba(47, 15, 22, 0.1) 0%, rgba(47, 15, 22, 0.5) 100%),
        linear-gradient(135deg, #5a2330 0%, #3a1520 50%, #491720 100%);
}

.cp-card:hover .cp-card-image {
    transform: scale(1.08);
}

.cp-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 10, 14, 0.65) 0%, transparent 50%);
    pointer-events: none;
}

.cp-card-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    color: var(--cp-brand);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.cp-card-badge:empty {
    display: none;
}

/* Kart gövdesi */
.cp-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 28px 26px 30px;
    position: relative;
}

.cp-card-body::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    bottom: -30px;
    right: -30px;
    background: url('../uploads/logo/alkis-logobeyaz.png') no-repeat center center;
    background-size: contain;
    opacity: 0.035;
    filter: invert(1) brightness(0.35);
    pointer-events: none;
}

.cp-card-location {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--cp-gold);
}

.cp-card-location:empty {
    display: none;
}

.cp-card-location::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--cp-gold);
    vertical-align: middle;
    box-shadow: 0 0 8px rgba(196, 160, 82, 0.5);
}

.cp-card-title {
    margin: 0 0 14px;
    font-size: clamp(1.4rem, 2.2vw, 1.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.3px;
    color: var(--cp-text);
}

.cp-card-desc {
    margin: 0 0 24px;
    flex: 1;
    font-size: 15px;
    line-height: 1.7;
    color: var(--cp-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Aksiyonlar — pill liquid */
.cp-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding-top: 18px;
    margin-top: auto;
    border-top: 1px solid rgba(73, 23, 32, 0.08);
}

.cp-card-link {
    border: none;
    background: none;
    padding: 8px 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--cp-brand) !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: color 0.25s ease, transform 0.25s ease;
}

.cp-card-link:hover {
    color: var(--cp-gold) !important;
    transform: translateY(-1px);
}

.cp-card-link.is-hidden {
    display: none;
}

.cp-card-btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cp-brand) 0%, #3d1520 100%) !important;
    border: none;
    color: #fff !important;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(73, 23, 32, 0.35);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;
}

.cp-card-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.cp-card-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 28px rgba(73, 23, 32, 0.45);
    color: #fff !important;
}

.cp-card-btn:hover::after {
    transform: translateX(100%);
}

/* landing.css override */
.current-projects.cp-section {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    top: 0 !important;
    display: block !important;
    justify-content: unset !important;
}

@media (max-width: 991px) {
    .cp-section {
        padding-left: 16px;
        padding-right: 16px;
        overflow: hidden;
    }

    .cp-section-header {
        flex-direction: column;
        align-items: stretch;
    }

    .cp-view-all-btn {
        align-self: flex-start;
        min-height: 46px;
    }

    .cp-cards-grid {
        grid-template-columns: 1fr;
        max-width: min(440px, 100%);
        margin: 0 auto;
    }

    .cp-card-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cp-card-btn {
        margin-left: 0;
        width: 100%;
        min-height: 46px;
    }

    .cp-blob {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cp-blob,
    .cp-card,
    .cp-card-image,
    .cp-view-all-btn,
    .cp-card-btn {
        animation: none !important;
        transition: none !important;
    }
}
