/* ==========================================
   ULTRA PROFESSIONAL SERVICES SECTION
   3D Flip Cards & Modern Design
   ========================================== */

/* Section Container */
.services-professional-section {
    position: relative;
    padding: 120px 0;
    background: #fff;
    overflow: hidden;
}

/* Animated Background Shapes */
.services-bg-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
    animation: floatShape 25s infinite ease-in-out;
    z-index: 0;
}

.services-bg-shape.shape-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    right: -100px;
}

.services-bg-shape.shape-2 {
    width: 350px;
    height: 350px;
    bottom: 20%;
    left: -80px;
    animation-delay: 5s;
}

.services-bg-shape.shape-3 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -30px) rotate(90deg);
    }
    50% {
        transform: translate(-20px, 20px) rotate(180deg);
    }
    75% {
        transform: translate(20px, 30px) rotate(270deg);
    }
}

/* Section Header */
.section-header-services {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
}

.section-badge-services {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 237, 78, 0.15) 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    color: #d4a017;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-badge-services i {
    color: #ffd700;
    font-size: 16px;
}

.section-title-services {
    font-size: 3rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 20px;
    line-height: 1.2;
}

.gradient-text-services {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle-services {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Services Grid */
.services-grid-pro {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

/* Service Card - 3D Flip Effect */
.service-card-pro {
    perspective: 1000px;
    height: 420px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-pro:hover .service-card-inner {
    transform: rotateY(180deg);
}

/* Card Front & Back */
.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.service-card-front {
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card-back {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Service Badge */
.service-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

/* Service Icon Box */
.service-icon-box {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.service-icon-box i {
    font-size: 40px;
    color: #fff;
    position: relative;
    z-index: 2;
}

/* Icon Particles */
.icon-particles {
    position: absolute;
    inset: 0;
}

.icon-particles span {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: floatParticle 3s infinite ease-in-out;
}

.icon-particles span:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.icon-particles span:nth-child(2) {
    top: 10%;
    right: 10%;
    animation-delay: 1s;
}

.icon-particles span:nth-child(3) {
    bottom: 10%;
    left: 50%;
    animation-delay: 2s;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-15px);
        opacity: 0.3;
    }
}

/* Gradient Colors */
.gradient-green {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.gradient-blue {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.gradient-orange {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gradient-red {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.gradient-teal {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.gradient-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Card Front Content */
.service-card-front h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
    line-height: 1.3;
}

.service-card-front p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Service Features Mini */
.service-features-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.service-features-mini span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(102, 126, 234, 0.08);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #667eea;
}

.service-features-mini span i {
    font-size: 10px;
    color: #4ade80;
}

/* Card Back Content */
.service-card-back h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
}

.service-details-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.service-details-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 14px;
    padding: 8px 0;
}

.service-details-list li i {
    color: #ffd700;
    font-size: 14px;
    flex-shrink: 0;
}

/* Service Button */
.service-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: #fff;
    color: #667eea;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.service-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    background: #ffd700;
    color: #333;
}

.service-btn i {
    transition: transform 0.3s ease;
}

.service-btn:hover i {
    transform: translateX(5px);
}

/* All Services CTA */
.all-services-cta {
    text-align: center;
    position: relative;
    z-index: 1;
}

.btn-all-services {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn-all-services::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 ease, height 0.6s ease;
}

.btn-all-services:hover::before {
    width: 300px;
    height: 300px;
}

.btn-all-services:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

.btn-all-services i {
    transition: transform 0.3s ease;
}

.btn-all-services:hover i {
    transform: translateX(5px);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 1200px) {
    .services-grid-pro {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .section-title-services {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .services-professional-section {
        padding: 80px 0;
    }

    .section-header-services {
        margin-bottom: 60px;
    }

    .section-title-services {
        font-size: 2.2rem;
    }

    .section-subtitle-services {
        font-size: 1.1rem;
    }

    .services-grid-pro {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-card-pro {
        height: auto;
        min-height: 420px;
    }
}

@media (max-width: 768px) {
    .services-professional-section {
        padding: 60px 0;
    }

    .section-badge-services {
        font-size: 12px;
        padding: 10px 24px;
    }

    .section-title-services {
        font-size: 1.8rem;
    }

    .section-subtitle-services {
        font-size: 1rem;
    }

    .btn-all-services {
        width: 100%;
        justify-content: center;
        padding: 16px 30px;
        font-size: 1rem;
    }

    /* Mobile: Completely different layout - no 3D flip */
    .service-card-pro {
        height: auto;
        perspective: none;
    }

    .service-card-inner {
        transform-style: flat;
        transition: none;
    }

    /* Disable hover effect */
    .service-card-pro:hover .service-card-inner {
        transform: none;
    }

    /* Front card - normal display */
    .service-card-front {
        position: relative;
        padding: 30px 25px;
        backface-visibility: visible;
        transform: none;
        min-height: auto;
    }

    /* Back card - initially hidden */
    .service-card-back {
        position: relative;
        padding: 30px 25px;
        margin-top: 15px;
        backface-visibility: visible;
        transform: none;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: all 0.4s ease;
    }

    /* When card is expanded */
    .service-card-pro.expanded .service-card-back {
        max-height: 500px;
        opacity: 1;
        padding: 30px 25px;
    }

    /* Hide front when expanded */
    .service-card-pro.expanded .service-card-front {
        display: none;
    }

    /* Adjust front card sizes */
    .service-icon-box {
        width: 80px;
        height: 80px;
    }

    .service-icon-box i {
        font-size: 32px;
    }

    .service-card-front h3 {
        font-size: 1.2rem;
    }

    .service-card-front p {
        font-size: 0.9rem;
    }

    .service-features-mini {
        margin-bottom: 20px;
    }

    .service-features-mini span {
        font-size: 11px;
        padding: 5px 10px;
    }

    /* Add expand button to front card */
    .service-card-front::after {
        content: 'Detayları Gör';
        display: block;
        margin-top: 20px;
        padding: 12px 24px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: #fff;
        text-align: center;
        border-radius: 50px;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .service-card-pro:active .service-card-front::after {
        transform: scale(0.95);
    }

    /* Back card header */
    .service-card-back h4 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    /* Back card list */
    .service-details-list li {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    /* Back card button adjustments */
    .service-btn {
        font-size: 0.95rem;
        padding: 12px 20px;
    }

    /* Add close button to back card */
    .service-card-back::before {
        content: '← Geri';
        position: absolute;
        top: 15px;
        left: 15px;
        background: rgba(255, 255, 255, 0.25);
        backdrop-filter: blur(10px);
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 700;
        cursor: pointer;
        border: 1px solid rgba(255, 255, 255, 0.4);
        z-index: 10;
    }
}

@media (max-width: 576px) {
    .section-title-services {
        font-size: 1.6rem;
    }

    .service-icon-box {
        width: 70px;
        height: 70px;
    }

    .service-icon-box i {
        font-size: 28px;
    }

    .services-bg-shape {
        display: none;
    }
}
