/* ===== PROJELER SAYFASI - ÖZEL STİLLER ===== */

/* Body için temel ayar */
body {
    position: relative;
}

/* Navbar için özel stil */
.navbar {
    background: rgba(255, 255, 255, 0.98);
}

/* Back Button Container */
.back-button-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 9999;
    animation: slideInLeft 0.6s ease-out;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #1a39e6, #153dbe);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.back-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.back-button:hover::before {
    left: 100%;
}

.back-button svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.back-button:hover {
    transform: translateX(-8px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

.back-button:hover svg {
    transform: translateX(-4px);
}

.back-button:active {
    transform: translateX(-6px) scale(0.98);
}

/* Projects Hero */
.projects-hero {
    background: linear-gradient(135deg, #b94040 0%, #7e571c 100%);
    color: white;
    padding: 100px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.projects-hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    top: -300px;
    right: -300px;
    animation: float 8s ease-in-out infinite;
}

.projects-hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    bottom: -200px;
    left: -200px;
    animation: float 6s ease-in-out infinite reverse;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    animation: fadeInDown 0.8s ease-out;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* Projects Section */
.projects-section {
    padding: 80px 20px;
    background: #f7fafc;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 35px;
    animation: fadeIn 1s ease-out 0.4s backwards;
}

/* Project Card */
.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.25);
}

/* Project Image */
.project-image {
    position: relative;
    overflow: hidden;
    height: 240px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image img {
    transform: scale(1.12) rotate(1deg);
    filter: brightness(1.1);
}

/* Project Overlay */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.96), rgba(118, 75, 162, 0.96));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

/* Project Link */
.project-link {
    padding: 14px 32px;
    background: white;
    color: #dd5e2c;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.project-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #ee6c55, #d2e436);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.project-link:hover::before {
    width: 300px;
    height: 300px;
}

.project-link span {
    position: relative;
    z-index: 1;
    transition: color 0.3s;
}

.project-link:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    color: rgb(25, 9, 236);
}

/* Project Content */
.project-content {
    padding: 28px;
}

.project-content h3 {
    font-size: 1.5rem;
    color: #1a202c;
    margin-bottom: 12px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.project-card:hover .project-content h3 {
    color: #316b49d7;
}

.project-content p {
    color: #000000;
    margin-bottom: 18px;
    line-height: 1.7;
    font-size: 0.98rem;
}

/* Project Tags */
.project-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    padding: 8px 16px;
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    color: #667eea;
    border-radius: 25px;
    font-size: 0.88rem;
    font-weight: 600;
    border: 2px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.tag:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}


/* FOOTER */
.footer {
    background: linear-gradient(135deg, #b94040 0%, #7e571c 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

/* Arka plan animasyonlu şekiller */
.footer::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    top: -200px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.footer::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    bottom: -150px;
    left: -100px;
    animation: float 6s ease-in-out infinite reverse;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 1;
}

.footer p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.footer p:hover {
    transform: translateY(-2px);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Üst dekoratif çizgi */
.footer-divider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(255, 255, 255, 0.8) 50%, 
        rgba(255, 255, 255, 0.3) 100%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}







/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .projects-hero {
        padding: 80px 20px 60px;
    }
    
    .project-content h3 {
        font-size: 1.3rem;
    }
    
    .back-button {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .project-image {
        height: 200px;
    }

    .footer {
        padding: 30px 15px;
        margin-top: 60px;
    }
    
    .footer p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .projects-section {
        padding: 50px 15px;
    }
    
    .project-content {
        padding: 22px;
    }
    
    .project-image {
        height: 180px;
    }

    .page-title {
        font-size: 2rem;
    }

    .back-button-container {
        top: 15px;
        left: 15px;
    }

    .tag {
        padding: 6px 12px;
        font-size: 0.82rem;
    }

    .footer p {
        font-size: 0.9rem;
    }
}

/* Touch devices için özel stil */
@media (hover: none) and (pointer: coarse) {
    .project-card:active {
        transform: scale(0.98);
    }
    
    .project-overlay {
        display: none;
    }

    .tag:active {
        transform: scale(0.95);
    }
}

/* Container */
.container {
    position: relative;
    z-index: 1;
}