/* ================================================
   Services / Hizmetler Styles
   ================================================ */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&display=swap');

/* Premium Scrollbar & Nav Removal */
.tp-scroll-line,
.tp-onepage-nav,
.tp-side-nav,
.tp-section-nav,
.tp-hero-2-scroll-indicator,
[class*="scroll-line"],
[class*="scroll-indicator"] {
    display: none !important;
}

.services-section .container {
    max-width: 1900px !important;
    width: 100% !important;
    padding: 0 10px !important;
}

.services-section {
    padding: 100px 0;
    background: #000;
    position: relative;
    overflow: visible !important;
    z-index: 10;
}

.services-title {
    font-family: 'Caveat', cursive;
    /* Premium handwritten font */
    font-size: 42px;
    /* Slightly smaller as requested */
    font-weight: 600;
    color: #fff !important;
    letter-spacing: 1px;
    /* Natural spacing for handwriting */
    margin-bottom: 60px;
    text-transform: none;
    /* Handwritten looks better in natural case */
    display: block;
    text-align: center;
    width: 100%;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.services-grid {
    display: grid !important;
    grid-template-columns: repeat(8, 1fr) !important;
    gap: 12px !important;
    margin-top: 10px !important;
    width: 100% !important;
    max-width: 1400px;
    /* Optimized width for 8 columns */
    margin-left: auto;
    margin-right: auto;
}

.service-item {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
}

.service-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 20px 8px;
    /* Compact padding for square balance */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Perfect centering */
    gap: 8px !important;
    /* Subtle gap for premium look */
    transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    text-decoration: none !important;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 15px 5px;
}

/* Elite Shine Sweep */
.service-card::after {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 200%;
    height: 400%;
    background: linear-gradient(45deg,
            transparent 0%,
            rgba(233, 196, 106, 0.05) 45%,
            rgba(233, 196, 106, 0.1) 50%,
            rgba(233, 196, 106, 0.05) 55%,
            transparent 100%);
    transform: rotate(-30deg);
    transition: all 0.8s ease;
    pointer-events: none;
}

.service-card:hover::after {
    top: -50%;
    left: 50%;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(233, 196, 106, 0.6);
    /* Prestige Gold */
    transform: translateY(-15px);
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.9),
        0 0 30px rgba(233, 196, 106, 0.15);
}

.service-icon {
    font-size: 32px;
    /* Elegant size */
    color: #E9C46A;
    margin-bottom: 0 !important;
    line-height: 1 !important;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    height: 35px;
    /* Consistent area for icon */
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 15px rgba(233, 196, 106, 0.4));
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
    color: #fff;
    filter: drop-shadow(0 0 30px rgba(233, 196, 106, 1));
}

.service-title-text {
    font-family: 'Outfit', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    text-align: center;
    line-height: 1.1 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-transform: capitalize;
    display: flex !important;
    align-items: center;
    /* Vertical centring within text box */
    justify-content: center;
    min-height: 2.4em;
    /* Exactly 2 lines worth of height */
    max-width: 100px;
    /* Forces wrapping for "at least 2 lines" look */
    width: 100% !important;
    white-space: normal !important;
    overflow: visible !important;
    letter-spacing: 0.2px;
    opacity: 0.9;
    transition: all 0.4s ease;
}

.service-card:hover .service-title-text {
    opacity: 1;
    transform: scale(1.05);
}

/* Responsive Master Class */
@media (max-width: 1600px) {
    .services-grid {
        max-width: 1300px;
    }
}

@media (max-width: 1400px) {

    /* Keep 8 columns until much smaller screens */
    .services-grid {
        grid-template-columns: repeat(8, 1fr) !important;
        gap: 10px !important;
    }
}

@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(6, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 60px 0;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
        padding: 0 15px !important;
    }

    .services-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .service-card {
        padding: 25px 10px;
        min-height: 160px;
        border-radius: 20px;
    }

    .service-icon {
        font-size: 30px;
        margin-bottom: 4px !important;
        /* Ultra reduced for mobile */
        height: 40px;
    }

    .service-title-text {
        font-size: 13px !important;
        /* Increased for mobile readability */
        font-weight: 500 !important;
        line-height: 1.2;
    }
}

@media (max-width: 400px) {
    .services-grid {
        gap: 8px !important;
    }

    .service-item {
        flex: 0 0 calc(33.33% - 6px) !important;
    }

    .service-title-text {
        font-size: 12px !important;
        /* Increased for small mobile readability */
    }
}

/* Hide Reels Widget when Offcanvas Menu is Open */
body.menu-is-open #solid_reels_widget_v2,
.tp-offcanvas-2-area.opened~#solid_reels_widget_v2 {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* ================================================
   Reels Video Section Styles
   ================================================ */
.reels-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background-color: #0a0a0a;
}

.reels-title {
    color: #fff;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -1px;
}

.reels-slider-wrapper {
    overflow: hidden;
    padding: 20px 0;
    cursor: grab;
}

.reels-slider-wrapper:active {
    cursor: grabbing;
}

.reels-slider {
    overflow: visible;
}

.reels-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}

/* ================================================
   Performance & Accessibility Enhancements
   ================================================ */

/* Fix: Text Contrast for Footer Copyright */
.tp-copyright-2-menu li {
    color: #e0e0e0 !important;
    /* Increased contrast from default grey */
}

/* Fix: Touch Targets for Swiper Pagination */
.swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    margin: 0 6px !important;
    position: relative;
}

/* Invisible touch area extender */
.swiper-pagination-bullet::after {
    content: '';
    position: absolute;
    top: -10px;
    bottom: -10px;
    left: -10px;
    right: -10px;
}

/* Fix: Animation Performance for Reels */
#solid_reels_widget_v2,
.cx-reel-item,
.reels-modal {
    will-change: transform, opacity;
    /* Ensure no layout triggering properties are transitioned */
    transition-property: transform, opacity !important;
}

/* Ensure no font-size or color transitions triggers layout on these elements if not needed */
.cx-reel-item {
    backface-visibility: hidden;
    transform: translateZ(0);
    /* Promote to layer */
}

flex: 0 0 calc(25% - 15px);
max-width: calc(25% - 15px);
aspect-ratio: 9/16;
border-radius: 12px;
overflow: hidden;
transform: scale(0.95);
transition: all 0.4s ease;
cursor: pointer;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
position: relative;
}

.reel-item:hover {
    transform: scale(1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    z-index: 2;
}

/* Custom Styles for Reels Optimization */
.reel-thumbnail {
    background: #111;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.reel-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.reel-item:hover .reel-poster-img {
    transform: scale(1.05);
}

/* Video Preview Styling */
.reel-video-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.reel-item:hover .reel-video-preview {
    transform: scale(1.05);
}

/* Play Button Overlay */
.reel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.reel-item:hover .reel-overlay {
    opacity: 1;
}

.reel-play-btn {
    width: 60px;
    height: 60px;
    background: rgba(255, 215, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 20px;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
}

.reel-item:hover .reel-play-btn {
    transform: scale(1);
    background: #ffd700;
}

/* Modal Styles */
.reels-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.reels-modal.active {
    opacity: 1;
    visibility: visible;
}

.reels-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.reels-modal-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    /* Vertical Video Shape */
    max-height: 90vh;
    aspect-ratio: 9/16;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.1);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reels-modal.active .reels-modal-content {
    transform: scale(1);
}

.reels-modal video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reels-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.reels-modal-close:hover {
    background: #ffd700;
    color: #000;
    transform: rotate(90deg);
}


/* Responsive Reels */
@media (max-width: 1200px) {
    .reel-item {
        flex: 0 0 calc(33.333% - 14px);
        max-width: calc(33.333% - 14px);
    }
}

@media (max-width: 768px) {
    .reel-item {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }

    .reels-title {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .reel-item {
        flex: 0 0 calc(70% - 10px);
        /* Show part of next item to encourage swipe */
        max-width: calc(70% - 10px);
    }
}


/* ================================================
   About Text Styles
   ================================================ */
/* Parent container fix */
.des-about-text {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 15px !important;
    margin: 0 auto !important;
}

/* Paragraph fix */
.des-about-text p {
    max-width: 1100px !important;
    /* Slightly wider for larger text */
    margin: 0 auto 45px auto !important;
    padding: 0 !important;
    line-height: 1.3 !important;
    width: 100% !important;
    font-size: 42px !important;
    /* Increased from 32px */
    letter-spacing: -1px;
    font-weight: 500;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .des-about-text p {
        font-size: 28px !important;
        /* Increased from 24px */
        line-height: 1.3 !important;
    }
}

/* ================================================
   Partner Logos Styles
   ================================================ */
/* Mobile: 3 columns for partner logos */
@media (max-width: 767px) {
    .crp-process-area .row>[class*="col-"] {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .crp-process-area .crp-process-item {
        margin-bottom: 30px;
    }

    .crp-process-area .crp-process-icon img {
        max-width: 100%;
        height: auto;
    }
}

/* ================================================
   INSTAGRAM POST SLIDER - PREMIUM DESIGN
   ================================================ */

/* Section Container */
.instagram-post-section {
    padding: 60px 0;
    background: #0a0a0a;
    position: relative;
    overflow: hidden;
}

.instagram-post-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(225, 48, 108, 0.5), transparent);
}

/* Title Styling */
.instagram-title-wrapper {
    margin-bottom: 50px;
}

.instagram-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.instagram-title i {
    font-size: 2.2rem;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.instagram-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Slider Container */
.instagram-slider-wrapper {
    overflow: hidden;
    padding: 0 60px;
    margin: 0 auto;
}

.instagram-slider {
    overflow: visible;
    padding: 0;
}

.instagram-track {
    display: flex;
    gap: 8px;
    cursor: grab;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 0;
}

.instagram-track:active {
    cursor: grabbing;
}

/* Instagram Post Card - 8 items on desktop */
.instagram-item {
    flex: 0 0 calc(12.5% - 7px);
    max-width: calc(12.5% - 7px);
    user-select: none;
    transition: transform 0.4s ease;
}

.instagram-item:hover {
    transform: translateY(-8px);
}

.instagram-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: 8px;
    overflow: hidden;
    background: #1a1a1a;
    transition: all 0.4s ease;
}

.instagram-item:hover .instagram-thumbnail {
    box-shadow:
        0 20px 40px rgba(225, 48, 108, 0.15),
        0 0 0 1px rgba(225, 48, 108, 0.3),
        0 0 60px rgba(225, 48, 108, 0.1);
}

.instagram-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease;
    filter: none;
    /* Grayscale kaldırıldı */
}

.instagram-item:hover .instagram-thumbnail img {
    transform: scale(1.05);
}

/* Gradient Overlay */
.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    /* Karartma kaldırıldı */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

/* Instagram Icon Button */
.instagram-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 25px rgba(225, 48, 108, 0.4);
}

.instagram-item:hover .instagram-icon {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.instagram-icon i {
    color: #fff;
    font-size: 26px;
}

/* Post Footer with Like Count Simulation */
.instagram-thumbnail::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.instagram-item:hover .instagram-thumbnail::after {
    transform: scaleX(1);
}


/* ================================================
   RESPONSIVE DESIGN for Instagram
   ================================================ */

/* Large screens - 8 items */
/* Default is 8 items: 12.5% each */

/* Medium screens - 4 items */
@media (max-width: 1200px) {
    .instagram-item {
        flex: 0 0 calc(25% - 6px);
        max-width: calc(25% - 6px);
    }

    .instagram-slider-wrapper {
        padding: 0 40px;
    }
}

/* Tablet - 3 items */
@media (max-width: 991px) {
    .instagram-post-section {
        padding: 50px 0;
    }

    .instagram-item {
        flex: 0 0 calc(33.333% - 6px);
        max-width: calc(33.333% - 6px);
    }

    .instagram-slider-wrapper {
        padding: 0 30px;
    }

    .instagram-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .instagram-icon i {
        font-size: 18px;
    }
}

/* Mobile - 2 items (Refined for Reel Visibility) */
@media (max-width: 767px) {
    .instagram-post-section {
        padding: 40px 0;
        overflow-x: hidden;
        /* Fix screen overflow */
        width: 100%;
    }

    .instagram-item {
        /* Show 1.4 items for a premium "swipe" feel */
        flex: 0 0 70%;
        max-width: 70%;
    }

    .instagram-track {
        gap: 12px;
    }

    .instagram-slider-wrapper {
        padding: 0 20px;
        overflow: visible;
        /* Let items bleed momentarily if needed, but section hides it */
    }

    /* Force Natural Aspect Ratio for Full Image Visibility (No Cropping) */
    .instagram-thumbnail {
        aspect-ratio: auto;
        height: auto;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    .instagram-thumbnail img {
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
    }

    .instagram-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        /* Always visible on mobile for better UX */
        opacity: 1;
        transform: translateY(0) scale(1);
        bottom: 10px;
        right: 10px;
        position: absolute;
        /* Ensure it stays in corner */
    }

    .instagram-icon i {
        font-size: 18px;
    }

    /* Remove hover transform on mobile to prevent layout jumps */
    .instagram-item:hover {
        transform: none;
    }
}


/* Animation for continuous scrolling effect */
@keyframes instagram-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(225, 48, 108, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(225, 48, 108, 0.4);
    }
}