/* Portfolio Farklı Sunum Stilleri */

/* Web Tasarım - Browser Mockup Stilleri */
.portfolio-item[data-category="web"] .glass-card {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.portfolio-item[data-category="web"] .glass-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.1);
}

/* Browser Frame Animasyonları */
.portfolio-item[data-category="web"] .bg-slate-800 {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.portfolio-item[data-category="web"] .bg-slate-700 {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
}

/* Browser Controls Hover Efektleri */
.portfolio-item[data-category="web"]:hover .w-3.h-3 {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* URL Bar Animasyonu */
.portfolio-item[data-category="web"]:hover .bg-slate-700.rounded-md {
    background: linear-gradient(135deg, #475569 0%, #64748b 100%);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

/* Dijital Tasarım - Showcase Stilleri */
.portfolio-item[data-category="dijital"] .glass-card {
    background: rgba(88, 28, 135, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.1);
}

.portfolio-item[data-category="dijital"] .glass-card:hover {
    border-color: rgba(168, 85, 247, 0.3);
    /* Tüm shadow efektleri kaldırıldı */
}

/* Floating Elements Animasyonu */
.portfolio-item[data-category="dijital"]:hover .absolute.w-8.h-8,
.portfolio-item[data-category="dijital"]:hover .absolute.w-6.h-6,
.portfolio-item[data-category="dijital"]:hover .absolute.w-4.h-4 {
    animation: float 3s ease-in-out infinite;
}

.portfolio-item[data-category="dijital"]:hover .absolute.w-8.h-8 {
    animation-delay: 0s;
}

.portfolio-item[data-category="dijital"]:hover .absolute.w-6.h-6 {
    animation-delay: 1s;
}

.portfolio-item[data-category="dijital"]:hover .absolute.w-4.h-4 {
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-10px) scale(1.1);
        opacity: 0.8;
    }
}

/* Creative Tools Animasyonu */
.portfolio-item[data-category="dijital"] .bg-orange-500\/90,
.portfolio-item[data-category="dijital"] .bg-blue-500\/90 {
    transition: all 0.3s ease;
}

.portfolio-item[data-category="dijital"]:hover .bg-orange-500\/90 {
    background-color: rgba(249, 115, 22, 1);
    transform: rotate(-5deg) scale(1.1);
}

.portfolio-item[data-category="dijital"]:hover .bg-blue-500\/90 {
    background-color: rgba(59, 130, 246, 1);
    transform: rotate(5deg) scale(1.1);
}

/* Gradient Backgrounds */
.portfolio-item[data-category="dijital"] .bg-gradient-to-br {
    background: linear-gradient(135deg, 
        rgba(88, 28, 135, 0.2) 0%, 
        rgba(30, 41, 59, 0.5) 50%, 
        rgba(157, 23, 77, 0.2) 100%);
}

/* Aspect Ratio Farklılıkları */
.portfolio-item[data-category="web"] .aspect-video {
    aspect-ratio: 16 / 10; /* Web tasarımları için daha geniş */
}

.portfolio-item[data-category="dijital"] .aspect-square {
    aspect-ratio: 1 / 1; /* Dijital tasarımlar için kare */
}

/* Teknoloji Badge Stilleri */
.portfolio-item[data-category="web"] .bg-blue-500\/10 {
    background-color: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

.portfolio-item[data-category="web"] .text-blue-400 {
    color: rgb(96, 165, 250);
}

.portfolio-item[data-category="dijital"] .bg-purple-500\/10 {
    background-color: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.2);
}

.portfolio-item[data-category="dijital"] .text-purple-400 {
    color: rgb(196, 181, 253);
}

/* Hover Efektleri */
.portfolio-item[data-category="web"]:hover h3 {
    color: rgb(96, 165, 250);
}

.portfolio-item[data-category="dijital"]:hover h3 {
    color: rgb(196, 181, 253);
}

/* Kategori Badge Animasyonları */
.portfolio-item .px-3.py-1.rounded-full {
    transition: all 0.3s ease;
}

.portfolio-item[data-category="web"]:hover .bg-blue-500\/20 {
    background-color: rgba(59, 130, 246, 0.3);
    transform: scale(1.05);
}

.portfolio-item[data-category="dijital"]:hover .bg-purple-500\/20 {
    background-color: rgba(168, 85, 247, 0.3);
    transform: scale(1.05);
}

/* Responsive Düzenlemeler */
@media (max-width: 768px) {
    .portfolio-item[data-category="web"] .aspect-video {
        aspect-ratio: 16 / 9;
    }
    
    .portfolio-item[data-category="dijital"] .aspect-square {
        aspect-ratio: 4 / 3;
    }
    
    .portfolio-item .p-6 {
        padding: 1rem;
    }
}

/* Loading Animasyonu */
.portfolio-item {
    opacity: 0;
    transform: translateY(20px);
    animation: portfolioFadeIn 0.6s ease-out forwards;
}

.portfolio-item:nth-child(1) { animation-delay: 0.1s; }
.portfolio-item:nth-child(2) { animation-delay: 0.2s; }
.portfolio-item:nth-child(3) { animation-delay: 0.3s; }
.portfolio-item:nth-child(4) { animation-delay: 0.4s; }
.portfolio-item:nth-child(5) { animation-delay: 0.5s; }
.portfolio-item:nth-child(6) { animation-delay: 0.6s; }

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

/* Filter Transition */
.portfolio-item.filtering {
    transition: all 0.5s ease;
}

.portfolio-item.filtering.hidden {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
}

/* Özel Glow Efektleri */
.portfolio-item[data-category="web"]:hover {
    /* Glow efekti kaldırıldı */
}

.portfolio-item[data-category="dijital"]:hover {
    /* Glow efekti kaldırıldı */
}

/* Modal Stilleri */

/* Web Modal Stilleri */
#web-modal-content {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

#web-modal-content .bg-slate-800 {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

#web-modal-content .bg-slate-700 {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
    transition: all 0.3s ease;
}

#web-modal-content .bg-slate-700:hover {
    background: linear-gradient(135deg, #475569 0%, #64748b 100%);
    transform: scale(1.02);
}

/* Web Features Grid */
#web-modal-content .grid.grid-cols-2 > div {
    transition: all 0.3s ease;
}

#web-modal-content .grid.grid-cols-2 > div:hover {
    transform: translateY(-2px);
}

/* Digital Modal Stilleri */
#digital-modal-content {
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.2) 0%, rgba(30, 41, 59, 0.95) 50%, rgba(157, 23, 77, 0.2) 100%);
    border: 1px solid rgba(168, 85, 247, 0.2);
}

#digital-modal-content .bg-gradient-to-r {
    background: linear-gradient(90deg, 
        rgba(88, 28, 135, 0.5) 0%, 
        rgba(30, 41, 59, 1) 50%, 
        rgba(157, 23, 77, 0.5) 100%);
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
}

/* Creative Tools Animasyonu */
#digital-modal-content .w-8.h-8.bg-orange-500,
#digital-modal-content .w-8.h-8.bg-blue-500,
#digital-modal-content .w-8.h-8.bg-pink-500 {
    transition: all 0.3s ease;
}

#digital-modal-content .w-8.h-8.bg-orange-500:hover {
    transform: rotate(-10deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

#digital-modal-content .w-8.h-8.bg-blue-500:hover {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

#digital-modal-content .w-8.h-8.bg-pink-500:hover {
    transform: rotate(-5deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.4);
}

/* Floating Elements Animasyonu */
#digital-modal-content .animate-pulse {
    animation: digitalPulse 2s ease-in-out infinite;
}

@keyframes digitalPulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

#digital-modal-content .animate-bounce {
    animation: digitalBounce 2s ease-in-out infinite;
}

@keyframes digitalBounce {
    0%, 100% {
        transform: translateY(0px);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

/* Design Stats Grid */
#digital-modal-content .grid.grid-cols-3 > div {
    transition: all 0.3s ease;
}

#digital-modal-content .grid.grid-cols-3 > div:hover {
    transform: translateY(-3px) scale(1.05);
}

/* Button Stilleri */
#web-modal-content button,
#digital-modal-content button {
    transition: all 0.3s ease;
}

#web-modal-content button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

#digital-modal-content button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.3);
}

/* Gradient Button Hover */
#digital-modal-content .bg-gradient-to-r:hover {
    background: linear-gradient(45deg, #8b5cf6, #ec4899, #8b5cf6);
    background-size: 200% 200%;
    animation: gradientShift 2s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Modal Container Responsive */
@media (max-width: 1024px) {
    #modal-container {
        max-width: 90vw;
        margin: 1rem;
    }
    
    #web-modal-content .grid.lg\\:grid-cols-3,
    #digital-modal-content .grid.lg\\:grid-cols-2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    #web-modal-content .grid.grid-cols-2,
    #digital-modal-content .grid.grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    #web-modal-content .p-8,
    #digital-modal-content .p-8 {
        padding: 1rem;
    }
    
    #web-modal-content .bg-slate-800,
    #digital-modal-content .bg-gradient-to-r {
        padding: 1rem;
    }
    
    #web-modal-content .grid.grid-cols-2,
    #digital-modal-content .grid.grid-cols-3 {
        grid-template-columns: 1fr;
    }
}

/* Modal Transition */
#project-modal {
    transition: all 0.3s ease;
}

#project-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

#project-modal:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

#modal-container {
    transition: all 0.3s ease;
    transform: scale(0.95);
}

#project-modal:not(.hidden) #modal-container {
    transform: scale(1);
}
/* Image Placeholder Stilleri */
.bg-slate-700.flex.items-center.justify-center {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
    border: 2px dashed rgba(148, 163, 184, 0.3);
    transition: all 0.3s ease;
}

.bg-slate-700.flex.items-center.justify-center:hover {
    border-color: rgba(148, 163, 184, 0.5);
    background: linear-gradient(135deg, #475569 0%, #64748b 100%);
}

/* Modal Image Stilleri */
#web-modal-image,
#digital-modal-image,
#modal-image {
    transition: all 0.3s ease;
    max-width: 100%;
    height: auto;
}

#web-modal-image:hover,
#digital-modal-image:hover,
#modal-image:hover {
    transform: scale(1.02);
    cursor: pointer;
}

/* Loading State */
.modal-image-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Modal Content Fade In */
#web-modal-content,
#digital-modal-content,
#default-modal-content {
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* PORTFOLIO GRID - EQUAL HEIGHT CARDS */
#portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    #portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    #portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* FORCE EXACT SAME HEIGHT FOR ALL CARDS */
.portfolio-item {
    height: 440px;
    display: flex;
}

.portfolio-item .glass-card {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* IMAGE SECTION - SAME HEIGHT FOR BOTH TYPES */
.portfolio-item .glass-card > div:first-child {
    height: 220px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

/* Web cards browser frame */
.portfolio-item .glass-card .bg-slate-800 {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Digital cards gradient background */
.portfolio-item .glass-card .bg-gradient-to-br {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Image containers - same size for both */
.portfolio-item .aspect-video {
    height: 160px;
    flex-shrink: 0;
}

/* CONTENT SECTION - SAME HEIGHT FOR BOTH TYPES */
.portfolio-item .glass-card .p-6 {
    height: 220px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

/* Title area */
.portfolio-item .glass-card .p-6 h3 {
    height: 3rem;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Description area */
.portfolio-item .glass-card .p-6 p {
    height: 4.5rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-bottom: 1rem;
    text-overflow: ellipsis;
    line-height: 1.5;
}

/* Technology tags area */
.portfolio-item .glass-card .p-6 > div:last-child {
    margin-top: auto;
    min-height: 2rem;
}


/* Font Display Optimization - Override Font-Awesome */
@font-face {
  font-family: 'Font Awesome 6 Free';
  font-display: swap;
}

@font-face {
  font-family: 'Font Awesome 6 Brands';
  font-display: swap;
}

@font-face {
  font-family: 'Material Symbols Outlined';
  font-display: swap;
}
