/* ===============================================
   PROJELER.CSS — 5E Yapı Sistemleri Projects Page
   =============================================== */

/* ---- Hero ---- */
.proj-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 120px 10% 80px;
    background: linear-gradient(rgba(var(--bg-rgb), 0.75), rgba(var(--bg-rgb), 0.85)), url('resim/projeler-bg.webp') center/cover no-repeat;
}

.proj-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 20% 50%, rgba(251, 191, 36, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 80% 30%, rgba(251, 191, 36, 0.04) 0%, transparent 60%);
    z-index: 0;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    animation: floatShape 8s ease-in-out infinite;
}

.s1 {
    width: 300px;
    height: 300px;
    background: rgba(251, 191, 36, 0.06);
    top: -80px;
    left: -80px;
}

.s2 {
    width: 200px;
    height: 200px;
    background: rgba(251, 191, 36, 0.05);
    bottom: -60px;
    right: -60px;
    animation-delay: -3s;
}

.s3 {
    width: 150px;
    height: 150px;
    background: rgba(251, 191, 36, 0.04);
    top: 50%;
    left: 50%;
    animation-delay: -6s;
}

@keyframes floatShape {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(20px, -20px) scale(1.05);
    }

    66% {
        transform: translate(-15px, 15px) scale(0.95);
    }
}

.proj-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.proj-hero-tag {
    display: inline-block;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: var(--accent-gold);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.proj-hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 16px;
    color: var(--text-light);
}

.proj-hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* ---- Search ---- */
.search-wrapper {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
}

.search-wrapper svg {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-wrapper input {
    width: 100%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    padding: 16px 50px 16px 50px;
    color: var(--text-light);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-wrapper input::placeholder {
    color: rgba(148, 163, 184, .6);
}

.search-wrapper input:focus {
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.1);
}

#clearSearch {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    display: none;
    padding: 4px 8px;
    line-height: 1;
    border-radius: 50%;
    transition: all 0.2s;
}

#clearSearch:hover {
    color: var(--accent-gold);
    background: rgba(251, 191, 36, 0.1);
}

#clearSearch.visible {
    display: block;
}

/* ---- Stats ---- */
.stats-section {
    padding: 60px 10%;
    background: rgba(251, 191, 36, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.stat-item {
    padding: 30px 20px;
}

.stat-item .stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--accent-gold);
    letter-spacing: -0.04em;
    line-height: 1;
}

.stat-item .stat-unit {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.stat-item p {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ---- Projects Section ---- */
.projects-section {
    padding: 80px 6%;
    max-width: 1400px;
    margin: 0 auto;
}

/* ---- Filter Bar ---- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 10px 22px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.filter-btn:hover {
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.3);
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #0f172a;
}

.filter-icon {
    font-size: 1rem;
}

/* ---- Results Info ---- */
.results-info {
    margin-bottom: 30px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ---- Projects Grid ---- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

/* ---- Project Card ---- */
.project-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    transform-style: preserve-3d;
    will-change: transform;
}

.project-card:hover {
    border-color: rgba(251, 191, 36, 0.3);
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(251, 191, 36, 0.1);
}

.project-card.hidden {
    display: none;
}

.project-card.fade-in {
    animation: cardFadeIn 0.4s ease-out forwards;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ---- Card Image ---- */
.card-image {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-img-bg {
    position: absolute;
    inset: 0;
}

.card-icon {
    position: relative;
    z-index: 1;
    width: 60px;
    height: 60px;
    transition: transform 0.4s ease;
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.project-card:hover .card-icon {
    transform: scale(1.15) rotate(5deg);
}

.card-category-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 100px;
}

.card-category-badge.mekanik,
.card-category-badge.altyapi,
.card-category-badge.imalat,
.card-category-badge.insaat,
.card-category-badge.bakim {
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: var(--accent-gold);
}

.card-category-badge.endustriyel,
.card-category-badge.ozel {
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.2);
    color: var(--accent-gold);
}

/* ---- Card Overlay ---- */
.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(var(--bg-rgb), 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.project-card:hover .card-overlay {
    opacity: 1;
}

.overlay-btn {
    background: var(--accent-gold);
    color: #0f172a;
    border: none;
    padding: 12px 28px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    transform: translateY(10px);
    opacity: 0;
}

.project-card:hover .overlay-btn {
    transform: translateY(0);
    opacity: 1;
    transition: all 0.3s ease 0.1s;
}

.overlay-btn:hover {
    background: #fff;
    transform: scale(1.05) !important;
}

/* ---- Card Body ---- */
.card-body {
    padding: 24px;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 10px;
    flex-wrap: wrap;
}

.meta-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-year {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-gold);
    background: rgba(251, 191, 36, 0.1);
    padding: 3px 12px;
    border-radius: 100px;
}

.card-city {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.card-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-light);
    line-height: 1.4;
}

.card-body p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.card-tags span {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

/* ---- Empty State ---- */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.empty-state button {
    background: none;
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: var(--accent-gold);
    padding: 10px 24px;
    border-radius: 100px;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
}

.empty-state button:hover {
    background: rgba(251, 191, 36, 0.1);
}

/* ---- CTA Section ---- */
.cta-section {
    padding: 100px 10%;
    text-align: center;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.05) 0%, transparent 60%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-content h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Modal / Lightbox ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    position: relative;
    max-width: 600px;
    width: 100%;
    padding: 48px;
    border-radius: 24px;
    transform: translateY(30px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-box {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-light);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(251, 191, 36, 0.2);
    color: var(--accent-gold);
}

.modal-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: var(--accent-gold);
}

.modal-box h2 {
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.modal-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.modal-box p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 24px;
    font-size: 0.98rem;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.modal-tags span {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.modal-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.modal-stat-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.modal-stat-item .msv {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-gold);
    display: block;
}

.modal-stat-item .msl {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

/* ---- Hamburger / Mobile ---- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-light);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(var(--bg-rgb), 0.98);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    padding: 100px 40px 40px;
    gap: 30px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.8;
    transition: all 0.2s;
}

.mobile-menu a:hover {
    opacity: 1;
    color: var(--accent-gold);
    padding-left: 10px;
}

.nav-active {
    color: var(--accent-gold) !important;
    opacity: 1 !important;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-bar {
        gap: 8px;
    }

    .filter-btn {
        font-size: 0.82rem;
        padding: 9px 16px;
    }

    .modal-box {
        padding: 30px 24px;
    }

    .modal-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .projects-section {
        padding: 60px 4%;
    }

    .proj-hero {
        padding: 100px 5% 60px;
    }
}