﻿/* ══════════════════════════════════════════════
   GALLARDO GROUP — baslayacak4.css
   ══════════════════════════════════════════════ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    margin-top: 2rem;
    padding: 0 2rem 4rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: .5rem;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 1.05rem;
    color: #6c757d;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px,1fr));
    gap: 2.25rem;
    margin-bottom: 3rem;
}

.project-item {
    position: relative;
    display: block;
    aspect-ratio: 6/5;
    border-radius: 20px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,.1);
    transition: all .4s cubic-bezier(.4,0,.2,1);
}

    .project-item::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 50%);
        z-index: 1;
        transition: opacity .4s ease;
    }

    .project-item:hover::before {
        opacity: .3;
    }

.project-name {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    z-index: 2;
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,.5);
    transition: all .4s ease;
    max-width: calc(100% - 4rem);
    line-height: 1.2;
}

.project-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) scale(.9);
    width: calc(100% - 60px);
    height: calc(100% - 60px);
    background: rgba(11,50,109,.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    z-index: 3;
    transition: all .4s cubic-bezier(.4,0,.2,1);
    padding: 2rem;
}

.project-item:hover .project-overlay {
    opacity: 1;
    transform: translate(-50%,-50%) scale(1);
}

.project-item:hover .project-name {
    opacity: 0;
    transform: translateY(10px);
}

@media (hover:none) {
    .project-item.touched .project-overlay {
        opacity: 1;
        transform: translate(-50%,-50%) scale(1);
    }

    .project-item.touched .project-name {
        opacity: 0;
        transform: translateY(10px);
    }
}

.overlay-title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.25;
}

.overlay-button {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 2.5rem;
    background: white;
    color: #0b326d;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    transition: all .3s ease;
    text-decoration: none;
    white-space: nowrap;
}

    .overlay-button:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(255,255,255,.3);
    }

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.75rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.page-info {
    font-size: 1rem;
    color: #495057;
    font-weight: 500;
}

.btn {
    padding: .75rem 2rem;
    background: #0b326d;
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: .95rem;
    font-family: inherit;
    cursor: pointer;
    transition: all .3s ease;
    -webkit-appearance: none;
    touch-action: manipulation;
}

    .btn:hover:not(:disabled) {
        background: #14417d;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(11,50,109,.3);
    }

    .btn:disabled {
        background: #ced4da;
        cursor: not-allowed;
        opacity: .6;
    }

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    font-size: 4rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: .5rem;
}

.empty-state-text {
    font-size: 1rem;
    color: #6c757d;
}

@media (max-width:1200px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
        gap: 1.75rem;
    }
}

@media (max-width:768px) {
    .container {
        margin-top: 3rem;
        padding: 0 1.25rem 3.5rem;
    }

    .page-title {
        font-size: 1.9rem;
    }

    .page-subtitle {
        font-size: .95rem;
    }

    .page-header {
        margin-bottom: 2.25rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }

    .project-item {
        aspect-ratio: 4/3;
        border-radius: 16px;
    }

    .project-name {
        font-size: 1.5rem;
        bottom: 1.5rem;
        left: 1.5rem;
        max-width: calc(100% - 3rem);
    }

    .overlay-title {
        font-size: 1.6rem;
    }

    .project-overlay {
        width: calc(100% - 40px);
        height: calc(100% - 40px);
        gap: 1.4rem;
        padding: 1.5rem;
    }

    .overlay-button {
        padding: .875rem 2rem;
        font-size: .92rem;
    }

    .pagination {
        flex-direction: column;
        gap: .85rem;
        margin-top: 2rem;
    }

    .btn {
        width: 100%;
        max-width: 220px;
    }
}

@media (max-width:480px) {
    .container {
        margin-top: 5rem;
        padding: 0 1rem 3rem;
    }

    .page-title {
        font-size: 1.65rem;
    }

    .page-subtitle {
        font-size: .88rem;
    }

    .project-item {
        aspect-ratio: 3/2;
        border-radius: 14px;
    }

    .project-name {
        font-size: 1.3rem;
        bottom: 1.25rem;
        left: 1.25rem;
    }

    .overlay-title {
        font-size: 1.35rem;
    }

    .overlay-button {
        padding: .75rem 1.75rem;
        font-size: .88rem;
    }

    .project-overlay {
        width: calc(100% - 30px);
        height: calc(100% - 30px);
        gap: 1.2rem;
        border-radius: 12px;
    }
}

@media (max-width:360px) {
    .container {
        margin-top: 5rem;
        padding: 0 .85rem 2.5rem;
    }

    .page-title {
        font-size: 1.45rem;
    }

    .project-name {
        font-size: 1.15rem;
        bottom: 1rem;
        left: 1rem;
    }

    .overlay-title {
        font-size: 1.2rem;
    }

    .overlay-button {
        padding: .65rem 1.4rem;
        font-size: .82rem;
    }

    .btn {
        max-width: 180px;
    }
}
