/* Neler Yaptık - Frontend Styles */

.nyaptik-section-wrapper {
    width: 100%;
    padding: 80px 20px;
    background: #ffffff;
    position: relative;
}

.nyaptik-section-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Section Header */
.nyaptik-section-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out;
}

.nyaptik-section-title {
    font-size: 42px;
    font-weight: 700;
    color: #2e7d32;
    line-height: 1.2;
    margin: 0 0 20px 0;
}

.nyaptik-section-description {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

/* Projects Grid */
.nyaptik-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
    align-items: start;
}

.nyaptik-project-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
    min-height: 400px;
}

.nyaptik-project-card:nth-child(1) { animation-delay: 0.1s; }
.nyaptik-project-card:nth-child(2) { animation-delay: 0.2s; }
.nyaptik-project-card:nth-child(3) { animation-delay: 0.3s; }
.nyaptik-project-card:nth-child(4) { animation-delay: 0.4s; }
.nyaptik-project-card:nth-child(5) { animation-delay: 0.5s; }
.nyaptik-project-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nyaptik-project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.nyaptik-project-image {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    height: 300px;
    flex-shrink: 0;
    display: block;
}

.nyaptik-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 100%;
    min-height: 100%;
}

.nyaptik-project-card:hover .nyaptik-project-image img {
    transform: scale(1.15);
}

/* Hover Overlay */
.nyaptik-project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.95) 0%, rgba(27, 94, 32, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 30px;
    box-sizing: border-box;
    z-index: 2;
}

.nyaptik-project-card:hover .nyaptik-project-overlay {
    opacity: 1;
    visibility: visible;
}

.nyaptik-project-description {
    font-size: 15px;
    line-height: 1.8;
    color: #fff;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.1s;
}

.nyaptik-project-card:hover .nyaptik-project-description {
    opacity: 1;
    transform: translateY(0);
}

.nyaptik-project-title-top {
    padding: 20px;
    background: #f0f7f0;
    font-size: 18px;
    font-weight: 600;
    color: #2e7d32;
    text-align: center;
    border-radius: 16px 16px 0 0;
    transition: all 0.3s ease;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    word-wrap: break-word;
    line-height: 1.4;
}

.nyaptik-project-card:hover .nyaptik-project-title-top {
    background: #e8f5e9;
    color: #1b5e20;
}

/* Button Wrapper */
.nyaptik-button-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.nyaptik-view-all-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2e7d32;
    color: #ffffff;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
    position: relative;
    overflow: hidden;
}

.nyaptik-view-all-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.nyaptik-view-all-button:hover::before {
    width: 300px;
    height: 300px;
}

.nyaptik-view-all-button:hover {
    background: #1b5e20;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.4);
    color: #ffffff;
}

.nyaptik-view-all-button:active {
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nyaptik-section-title {
        font-size: 36px;
    }
    
    .nyaptik-section-description {
        font-size: 16px;
    }
    
    .nyaptik-projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .nyaptik-section-wrapper {
        padding: 60px 15px;
    }
    
    .nyaptik-section-header {
        margin-bottom: 40px;
    }
    
    .nyaptik-section-title {
        font-size: 32px;
    }
    
    .nyaptik-section-description {
        font-size: 15px;
    }
    
    .nyaptik-projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 40px;
    }
    
    .nyaptik-project-image {
        height: 280px;
    }
    
    .nyaptik-project-card {
        min-height: 380px;
    }
    
    .nyaptik-view-all-button {
        padding: 14px 32px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .nyaptik-section-wrapper {
        padding: 40px 10px;
    }
    
    .nyaptik-section-header {
        margin-bottom: 30px;
    }
    
    .nyaptik-section-title {
        font-size: 28px;
    }
    
    .nyaptik-section-description {
        font-size: 14px;
    }
    
    .nyaptik-project-title-top {
        font-size: 16px;
        padding: 15px;
        min-height: 60px;
    }
    
    .nyaptik-project-image {
        height: 250px;
    }
    
    .nyaptik-project-card {
        min-height: 350px;
    }
    
    .nyaptik-project-title-top {
        min-height: 70px;
        font-size: 16px;
    }
    
    .nyaptik-view-all-button {
        padding: 12px 28px;
        font-size: 15px;
    }
}

