/* Hizmetler Sayfası CSS */

/* Hero Section - Hizmet Teması */
.hizmetler-hero {
    width: 100%;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        rgba(50, 205, 50, 0.15) 0%,
        rgba(30, 144, 255, 0.12) 20%,
        rgba(255, 20, 147, 0.1) 40%,
        rgba(255, 140, 0, 0.08) 60%,
        rgba(138, 43, 226, 0.1) 80%,
        rgba(220, 20, 60, 0.12) 100%);
    border-radius: 8px;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    animation: serviceHeroFlow 18s ease-in-out infinite;
}

@keyframes serviceHeroFlow {
    0%, 100% {
        background: linear-gradient(135deg, 
            rgba(50, 205, 50, 0.15) 0%,
            rgba(30, 144, 255, 0.12) 20%,
            rgba(255, 20, 147, 0.1) 40%,
            rgba(255, 140, 0, 0.08) 60%,
            rgba(138, 43, 226, 0.1) 80%,
            rgba(220, 20, 60, 0.12) 100%);
    }
    14.28% {
        background: linear-gradient(225deg, 
            rgba(30, 144, 255, 0.18) 0%,
            rgba(255, 20, 147, 0.15) 20%,
            rgba(255, 140, 0, 0.12) 40%,
            rgba(138, 43, 226, 0.1) 60%,
            rgba(220, 20, 60, 0.08) 80%,
            rgba(50, 205, 50, 0.15) 100%);
    }
    28.56% {
        background: linear-gradient(315deg, 
            rgba(255, 20, 147, 0.15) 0%,
            rgba(255, 140, 0, 0.18) 20%,
            rgba(138, 43, 226, 0.12) 40%,
            rgba(220, 20, 60, 0.1) 60%,
            rgba(50, 205, 50, 0.08) 80%,
            rgba(30, 144, 255, 0.15) 100%);
    }
    42.84% {
        background: linear-gradient(45deg, 
            rgba(255, 140, 0, 0.15) 0%,
            rgba(138, 43, 226, 0.18) 20%,
            rgba(220, 20, 60, 0.12) 40%,
            rgba(50, 205, 50, 0.1) 60%,
            rgba(30, 144, 255, 0.08) 80%,
            rgba(255, 20, 147, 0.15) 100%);
    }
    57.12% {
        background: linear-gradient(180deg, 
            rgba(138, 43, 226, 0.15) 0%,
            rgba(220, 20, 60, 0.18) 20%,
            rgba(50, 205, 50, 0.12) 40%,
            rgba(30, 144, 255, 0.1) 60%,
            rgba(255, 20, 147, 0.08) 80%,
            rgba(255, 140, 0, 0.15) 100%);
    }
    71.4% {
        background: linear-gradient(270deg, 
            rgba(220, 20, 60, 0.15) 0%,
            rgba(50, 205, 50, 0.18) 20%,
            rgba(30, 144, 255, 0.12) 40%,
            rgba(255, 20, 147, 0.1) 60%,
            rgba(255, 140, 0, 0.08) 80%,
            rgba(138, 43, 226, 0.15) 100%);
    }
    85.68% {
        background: linear-gradient(360deg, 
            rgba(50, 205, 50, 0.15) 0%,
            rgba(30, 144, 255, 0.18) 20%,
            rgba(255, 20, 147, 0.12) 40%,
            rgba(255, 140, 0, 0.1) 60%,
            rgba(138, 43, 226, 0.08) 80%,
            rgba(220, 20, 60, 0.15) 100%);
    }
}

.hizmetler-hero::before {
    content: '⚙️';
    position: absolute;
    font-size: 16rem;
    opacity: 0.08;
    animation: serviceMechanism 30s linear infinite;
    top: 3%;
    left: 10%;
    transform-origin: center;
}

.hizmetler-hero::after {
    content: '🛠️';
    position: absolute;
    font-size: 12rem;
    opacity: 0.1;
    animation: toolFloat 15s ease-in-out infinite;
    bottom: 6%;
    right: 15%;
}

@keyframes serviceMechanism {
    from { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.2); }
    50% { transform: rotate(180deg) scale(0.8); }
    75% { transform: rotate(270deg) scale(1.1); }
    to { transform: rotate(360deg) scale(1); }
}

@keyframes toolFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-35px) rotate(12deg) scale(1.2);
    }
    50% {
        transform: translateY(-60px) rotate(-8deg) scale(0.9);
    }
    75% {
        transform: translateY(-20px) rotate(5deg) scale(1.1);
    }
}

.hizmetler-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    animation: serviceTitle 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(-70px) scale(0.5);
}

@keyframes serviceTitle {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hizmetler-hero p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    animation: serviceDesc 2s cubic-bezier(0.4, 0, 0.2, 1) 0.7s forwards;
    opacity: 0;
    transform: translateY(60px);
}

@keyframes serviceDesc {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Content */
.hizmetler-main {
    background: #f8f9fa;
    padding: 3rem 0;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 4rem;
    width: 100%;
}

/* Hizmet Filtreleri */
.hizmet-filters {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
    padding: 2.5rem 0;
    box-shadow: 0 12px 50px rgba(44, 62, 80, 0.4);
    margin-bottom: 3rem;
    border-radius: 25px;
    position: relative;
    animation: filterServiceSlide 1.6s ease-out 1.4s forwards;
    opacity: 0;
    transform: translateY(-60px);
    overflow: hidden;
}

.hizmet-filters::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #3498db, #9b59b6, #e74c3c, #f39c12, #2ecc71, #1abc9c);
    background-size: 400% 400%;
    border-radius: 25px;
    animation: serviceGradientBorder 4s ease-in-out infinite;
    z-index: -1;
}

@keyframes serviceGradientBorder {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes filterServiceSlide {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-buttons {
    display: flex;
    gap: 1.8rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.filter-btn {
    padding: 1.2rem 2.8rem;
    border: 2px solid #ecf0f1;
    background: transparent;
    color: #ecf0f1;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Montserrat', sans-serif;
    position: relative;
    overflow: hidden;
    animation: btnServiceReveal 0.9s ease-out forwards;
    opacity: 0;
    transform: scale(0.5) rotate(-20deg);
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(15px);
}

.filter-btn:nth-child(1) { animation-delay: 1.6s; }
.filter-btn:nth-child(2) { animation-delay: 1.7s; }
.filter-btn:nth-child(3) { animation-delay: 1.8s; }
.filter-btn:nth-child(4) { animation-delay: 1.9s; }
.filter-btn:nth-child(5) { animation-delay: 2.0s; }
.filter-btn:nth-child(6) { animation-delay: 2.1s; }

@keyframes btnServiceReveal {
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(45deg, #3498db, #9b59b6, #e74c3c, #f39c12, #2ecc71);
    background-size: 300% 300%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.8s ease, height 0.8s ease;
    z-index: 0;
    animation: serviceGradientMove 2s ease-in-out infinite;
}

@keyframes serviceGradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.filter-btn:hover {
    color: #fff !important;
    transform: translateY(-8px) scale(1.15);
    box-shadow: 0 25px 50px rgba(236, 240, 241, 0.4);
    border-color: transparent;
    background: linear-gradient(45deg, #3498db, #9b59b6, #e74c3c) !important;
}

.filter-btn:hover::before {
    width: 0 !important;
    height: 0 !important;
}

.filter-btn:hover span {
    color: #ffffff !important;
    position: relative;
    z-index: 10;
}

.filter-btn:hover,
.filter-btn:hover *,
.filter-btn:hover span {
    color: #ffffff !important;
}

.filter-btn.active {
    background: linear-gradient(45deg, #3498db, #9b59b6, #e74c3c) !important;
    color: #fff !important;
    box-shadow: 0 20px 40px rgba(52, 152, 219, 0.5);
    transform: scale(1.05);
    border-color: transparent;
}

.filter-btn.active span {
    color: #fff !important;
    font-weight: 700;
}

@keyframes serviceActiveFlow {
    0%, 100% {
        background-position: 0% 50%;
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7);
    }
    25% {
        background-position: 100% 50%;
        box-shadow: 0 0 0 20px rgba(155, 89, 182, 0.3);
    }
    50% {
        background-position: 0% 100%;
        box-shadow: 0 0 0 40px rgba(231, 76, 60, 0);
    }
    75% {
        background-position: 100% 0%;
        box-shadow: 0 0 0 20px rgba(243, 156, 18, 0.3);
    }
}

.filter-btn span {
    position: relative;
    z-index: 1;
}

/* Hizmetler Grid */
.hizmetler-grid {
    padding: 2rem 0;
}

.grid-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    align-items: stretch;
}

/* Hizmet Kartı */
.hizmet-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(80px) scale(0.6) rotateY(-15deg);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    animation: serviceCardAppear 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transform-style: preserve-3d;
}

.hizmet-card:nth-child(1) { animation-delay: 2.2s; }
.hizmet-card:nth-child(2) { animation-delay: 2.3s; }
.hizmet-card:nth-child(3) { animation-delay: 2.4s; }
.hizmet-card:nth-child(4) { animation-delay: 2.5s; }
.hizmet-card:nth-child(5) { animation-delay: 2.6s; }
.hizmet-card:nth-child(6) { animation-delay: 2.7s; }
.hizmet-card:nth-child(7) { animation-delay: 2.8s; }
.hizmet-card:nth-child(8) { animation-delay: 2.9s; }
.hizmet-card:nth-child(9) { animation-delay: 3.0s; }
.hizmet-card:nth-child(10) { animation-delay: 3.1s; }
.hizmet-card:nth-child(11) { animation-delay: 3.2s; }
.hizmet-card:nth-child(12) { animation-delay: 3.3s; }

@keyframes serviceCardAppear {
    to {
        opacity: 1;
        transform: translateY(0) scale(1) rotateY(0deg);
    }
}

.hizmet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 1s ease;
    z-index: 10;
}

.hizmet-card:hover {
    transform: translateY(-30px) scale(1.1) rotateY(5deg);
    box-shadow: 0 40px 80px rgba(52, 152, 219, 0.3);
}

.hizmet-card:hover::before {
    left: 100%;
}

/* Hizmet İkonu */
.hizmet-icon {
    width: 100px;
    height: 100px;
    margin: 2rem auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3498db 0%, #9b59b6 100%);
    border-radius: 50%;
    position: relative;
    transition: all 0.6s ease;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.hizmet-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(45deg, #3498db, #9b59b6, #e74c3c, #f39c12, #2ecc71);
    background-size: 400% 400%;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    animation: iconGradientSpin 3s linear infinite;
}

@keyframes iconGradientSpin {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

.hizmet-card:hover .hizmet-icon {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 15px 40px rgba(155, 89, 182, 0.5);
}

.hizmet-card:hover .hizmet-icon::before {
    opacity: 0.8;
}

.hizmet-icon i {
    font-size: 2.5rem;
    color: #fff;
    transition: all 0.4s ease;
}

.hizmet-card:hover .hizmet-icon i {
    transform: scale(1.2);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

/* Hizmet İçeriği */
.hizmet-content {
    padding: 1.5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    text-align: center;
}

.hizmet-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.hizmet-card:hover .hizmet-content h3 {
    color: #3498db;
}

.hizmet-category {
    color: #3498db;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(52, 152, 219, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    display: inline-block;
    width: fit-content;
    margin: 0 auto;
}

.hizmet-desc {
    color: var(--grey);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.hizmet-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 0.85rem;
}

.hizmet-availability, .hizmet-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--grey);
}

.hizmet-availability i {
    color: #2ecc71;
}

.hizmet-location i {
    color: #e74c3c;
}

.hizmet-status {
    margin-top: 1rem;
}

.status-free {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-included {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-paid {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-available {
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-premium {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: premiumGlow 2s ease-in-out infinite;
}

@keyframes premiumGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(231, 76, 60, 0.5);
    }
    50% {
        box-shadow: 0 0 25px rgba(231, 76, 60, 0.8);
    }
}

.hizmet-status span:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .grid-wrapper {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    .grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.8rem;
    }

    .hizmetler-hero {
        height: 350px;
    }

    .hizmet-icon {
        width: 80px;
        height: 80px;
    }

    .hizmet-icon i {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hizmetler-main {
        padding: 2rem 0;
    }

    .hizmet-filters {
        padding: 2rem 0;
        margin-bottom: 2rem;
    }

    .filter-buttons {
        gap: 1rem;
    }

    .filter-btn {
        padding: 1rem 1.8rem;
        font-size: 0.85rem;
    }

    .grid-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hizmetler-hero {
        height: 300px;
        padding: 1.5rem;
    }

    .hizmet-content {
        padding: 1.5rem;
    }

    .hizmet-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hizmetler-hero {
        height: 250px;
        padding: 1rem;
    }

    .filter-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
    }

    .hizmet-content {
        padding: 1.2rem;
    }

    .hizmet-content h3 {
        font-size: 1.2rem;
    }

    .hizmet-icon {
        width: 70px;
        height: 70px;
    }

    .hizmet-icon i {
        font-size: 1.8rem;
    }
}

/* Animasyon sınıfları */
.hizmet-card.fade-in {
    animation: fadeInService 0.9s ease forwards;
}

.hizmet-card.fade-out {
    animation: fadeOutService 0.5s ease forwards;
}

@keyframes fadeInService {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.8) rotateY(-10deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1) rotateY(0deg);
    }
}

@keyframes fadeOutService {
    from {
        opacity: 1;
        transform: scale(1) rotateY(0deg);
    }
    to {
        opacity: 0;
        transform: scale(0.6) rotateY(10deg);
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--grey);
}

.empty-state i {
    font-size: 4rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 1rem;
    color: var(--grey);
}
