/* ==============================================================================
   Enigma Web Geliştirme - Kurumsal Tipografi & Global Font Boyutu Optimizasyonu
   ============================================================================== */

:root {
    --font-size-b1: 15px !important;
    --font-size-b2: 16px !important;
    --font-size-b3: 18px !important;
    --h1: 38px !important;
    --h2: 30px !important;
    --h3: 24px !important;
    --h4: 20px !important;
    --h5: 17px !important;
    --h6: 15px !important;
}

body {
    font-size: 15px !important;
    line-height: 1.65 !important;
    color: #475569 !important;
    -webkit-font-smoothing: antialiased;
}

p {
    font-size: 15px;
    line-height: 1.65;
}

p.disc,
.rts-about-area .disc,
.service-detials-step-1 .disc {
    font-size: 15px !important;
    line-height: 1.7 !important;
}

/* Headings scale */
h1,
.h1 {
    font-size: 38px !important;
    line-height: 1.25 !important;
}

h2,
.h2,
.title-area .title,
.rts-title-area .title {
    font-size: 28px !important;
    line-height: 1.3 !important;
}

h3,
.h3 {
    font-size: 22px !important;
    line-height: 1.35 !important;
}

h4,
.h4 {
    font-size: 19px !important;
    line-height: 1.4 !important;
}

h5,
.h5 {
    font-size: 17px !important;
    line-height: 1.4 !important;
}

h6,
.h6 {
    font-size: 15px !important;
    line-height: 1.4 !important;
}

.pre-title,
.title-area span,
.title-area-faq span {
    font-size: 13px !important;
    letter-spacing: 1.2px !important;
}

/* Navigation font sizes */
.mainmenu>li>a {
    font-size: 14.5px !important;
}

.mainmenu .submenu li a {
    font-size: 14px !important;
}

.header-top-one .mail a,
.header-top-one .working-time p,
.top-nav li a {
    font-size: 13px !important;
}

/* Buttons */
.rts-btn {
    font-size: 14px !important;
    padding: 12px 26px !important;
}

/* Service Categories Sidebar */
.rts-single-wized.Categories.service .single-categories li a {
    font-size: 14.5px !important;
    padding: 13px 20px !important;
}

.rts-single-wized .wized-header .title {
    font-size: 19px !important;
}

/* Breadcrumb */
.rts-breadcrumb-area .title {
    font-size: 28px !important;
}

.rts-breadcrumb-area .bread-tag,
.rts-breadcrumb-area .bread-tag a,
.rts-breadcrumb-area .bread-tag span {
    font-size: 13.5px !important;
}

/* ==============================================================================
   Corporate Pillars / Value Proposition Section
   ============================================================================== */
.rts-corporate-pillars-area.counter-bg {
    background-color: #0b1120 !important;
    background-image: none !important;
    height: auto !important;
    min-height: auto !important;
    padding: 50px 0 !important;
}

.rts-gallery-area.gallery-bg {
    margin-top: 0 !important;
    padding-top: 50px !important;
    position: relative;
    z-index: 2;
}

.mySwipers .swiper-slide {
    opacity: 0 !important;
    visibility: hidden !important;
}

.mySwipers .swiper-slide:not(.swiper-slide-active) {
    opacity: 0 !important;
    visibility: hidden !important;
    display: none !important;
}

.mySwipers .swiper-slide-active {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    z-index: 10 !important;
}

.mySwipers .thumbnail-gallery {
    background-color: #ffffff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    height: 100% !important;
    min-height: 460px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.mySwipers .thumbnail-gallery img {
    max-height: 420px !important;
    width: 100% !important;
    object-fit: contain !important;
}

/* Business & Tech Solution Guide Cards */
.mySwipertestimonial {
    padding-bottom: 75px !important;
    position: relative !important;
}

.mySwipertestimonial .testimonial-inner {
    background: #ffffff !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
}

.mySwipertestimonial .swiper-button-next,
.mySwipertestimonial .swiper-button-prev {
    top: auto !important;
    bottom: 12px !important;
    position: absolute !important;
    z-index: 10 !important;
}

.mySwipertestimonial .swiper-button-prev {
    left: 20px !important;
    right: auto !important;
}

.mySwipertestimonial .swiper-button-next {
    left: 80px !important;
    right: auto !important;
}

/* ==============================================================================
   Global Layout Shift & Overflow Protection (Desktop & Mobile)
   ============================================================================== */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

/* Prevent watermark / pseudo-element overflows on mobile and tablet */
@media (max-width: 991px) {
    .rts-title-area::after,
    .rts-title-area.business::after,
    .rts-title-area.gallery::after,
    .rts-title-area.reviews::after,
    .rts-title-area.service-four::after,
    .rts-title-area.feedback.team::after {
        display: none !important;
    }
}

/* Prevent hero headline and shape overlaps */
.rts-banner-one .swiper-wrapper .swiper-slide .banner-one-inner .shape-img.one {
    right: 20px !important;
    opacity: 0.8 !important;
    pointer-events: none !important;
}

.banner-one-inner .title {
    position: relative !important;
    z-index: 2 !important;
}

/* Fix author call badge text breaking on mobile */
.about-founder-wrapper .author-call-option,
.about-founder-wrapper .founder-details {
    white-space: nowrap !important;
}

.about-founder-wrapper .author-call-option .title,
.about-founder-wrapper .founder-details .title {
    white-space: nowrap !important;
    word-break: keep-all !important;
}

@media (max-width: 575px) {
    .about-founder-wrapper .author-call-option img {
        margin-right: 10px !important;
        padding: 8px !important;
    }
    .about-founder-wrapper .author-call-option span {
        font-size: 12px !important;
    }
    .about-founder-wrapper .author-call-option .title {
        font-size: 14px !important;
    }
}

.pillar-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    padding: 24px 20px !important;
    transition: all 0.3s ease !important;
}

.pillar-card:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(225, 29, 72, 0.4) !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25) !important;
}

.pillar-icon {
    width: 52px !important;
    height: 52px !important;
    background: rgba(225, 29, 72, 0.15) !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 16px !important;
}

.pillar-icon i {
    color: #f43f5e !important;
    font-size: 22px !important;
}

/* ==============================================================================
   Service Detail Page Images Styling
   ============================================================================== */
.service-detials-step-1 > .thumbnail > img {
    width: 100% !important;
    height: 380px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}

.service-detials-step-1 .thumbnail.mt--30 > img {
    width: 100% !important;
    height: 320px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}

.service-detials-step-3 .thumbnail.sm-thumb-service > img {
    width: 100% !important;
    height: 320px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}

@media (max-width: 768px) {
    .service-detials-step-1 > .thumbnail > img,
    .service-detials-step-1 .thumbnail.mt--30 > img,
    .service-detials-step-3 .thumbnail.sm-thumb-service > img {
        height: 240px !important;
    }
}

/* ==============================================================================
   Smooth Scroll, Sticky Header & Hero Slider Fixes
   ============================================================================== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

[id] {
    scroll-margin-top: 110px;
}

/* Hero Slider Crossfade & Text Ghosting Prevention */
.banner-one .swiper-slide {
    opacity: 0 !important;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.banner-one .swiper-slide.swiper-slide-active {
    opacity: 1 !important;
    pointer-events: auto;
}

/* Sticky Header Smooth Entrance & Shadow */
.header--sticky.sticky {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    animation: headerStickySlide 0.3s ease-out;
}

@keyframes headerStickySlide {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}