/* ==========================================================================
   Mavi Kedi Reklam Ajansı — Responsive Stylesheet
   Mobile-first overrides for tablet, laptop, desktop
   ========================================================================== */


/* --------------------------------------------------------------------------
   Large Desktop (1400px+)
   -------------------------------------------------------------------------- */


/* --------------------------------------------------------------------------
   Laptop (992px — 1399px) — header sıkışmasını önle
   -------------------------------------------------------------------------- */

@media (min-width: 992px) and (max-width: 1399.98px) {
     :root {
        --navbar-height: 92px;
        --header-height: calc(var(--topbar-height) + var(--navbar-height));
        --header-height-top: calc(var(--topbar-height) + var(--navbar-height));
    }
    .header-container {
        padding: 0 1.5rem;
        gap: 0.75rem;
    }
    .navbar-brand .logo-img {
        height: 62px;
        max-width: none;
    }
    .navbar-nav .nav-link {
        padding: 0.5rem 0.7rem !important;
        font-size: 0.9375rem;
        gap: 0.4rem;
    }
    .nav-icon {
        width: 30px;
        height: 30px;
        font-size: 0.8125rem;
    }
    #mainNav .btn-cta-3d {
        padding: 0.65rem 1.35rem;
        font-size: 0.8125rem;
        margin-left: 0.75rem !important;
    }
}


/* --------------------------------------------------------------------------
   Laptop (992px — 1199px)
   -------------------------------------------------------------------------- */

@media (max-width: 1199px) {
    .services-checker {
        grid-template-columns: repeat(2, 1fr);
    }
    .svc-p1 {
        grid-column: 1 / 3;
        grid-row: auto;
        min-height: 300px;
    }
    .svc-p2,
    .svc-p3,
    .svc-p4,
    .svc-p5,
    .svc-p6,
    .svc-p7,
    .svc-p8 {
        grid-column: auto;
        grid-row: auto;
    }
    .svc-p8 {
        grid-column: 1 / 3;
    }
    .svc-p9 {
        grid-column: 1 / 3;
        grid-row: auto;
    }
    .process-steps {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
    .process-line {
        display: none;
    }
    .about-mockup {
        min-height: 400px;
        margin-top: 2rem;
    }
    .references-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* --------------------------------------------------------------------------
   Tablet (768px — 991px)
   -------------------------------------------------------------------------- */

@media (max-width: 1280px) {
    .topbar-contact li:nth-child(2) {
        display: none;
    }
}

@media (max-width: 1199px) {
    .topbar-location {
        display: none;
    }
    .topbar-menu-link span {
        display: none;
    }
    .topbar-menu-link {
        width: 32px;
        height: 32px;
        padding: 0;
        justify-content: center;
        border-radius: 8px;
        background: rgba(46, 168, 255, 0.08);
    }
    .topbar-menu-link i {
        font-size: 0.75rem;
        color: var(--primary);
    }
}

@media (max-width: 991px) {
     :root {
        --topbar-height: 50px;
        --navbar-height: 70px;
        --header-height: calc(var(--topbar-height) + var(--navbar-height));
        --header-height-top: calc(var(--topbar-height) + var(--navbar-height));
        --sticky-header-offset: var(--header-height);
        --process-gutter: 48px;
    }

    html,
    body {
        overflow-x: clip;
        max-width: 100%;
    }

    .about-mockup-col,
    .about-mini .row > :has(> .about-mockup),
    .about-mini .about-mockup {
        display: none;
    }

    .header-topbar {
        display: block;
        max-width: 100%;
        overflow-x: clip;
    }

    .header-topbar-inner {
        padding: 0 1.25rem;
        gap: 0.5rem;
        min-width: 0;
        max-width: 100%;
    }

    .topbar-contact {
        display: none;
    }

    .topbar-right {
        flex: 1 1 auto;
        justify-content: flex-end;
        gap: 0.35rem;
        min-width: 0;
        max-width: 100%;
    }

    .topbar-divider {
        display: none;
    }

    .topbar-social {
        gap: 0.25rem;
    }

    .topbar-social-link {
        width: 28px;
        height: 28px;
        font-size: 0.6875rem;
    }

    .topbar-search-cta {
        min-height: 28px;
        padding: 0.25rem 0.65rem;
        font-size: 0.72rem;
        gap: 0.3rem;
    }

    .topbar-search-cta span {
        display: inline;
    }

    .search-popup {
        padding: 1rem 0.75rem 1rem;
    }

    .search-popup__shell {
        margin-top: 1.25rem;
    }

    .search-popup__close {
        top: 0.65rem;
        right: 0.65rem;
        width: 40px;
        height: 40px;
    }

    .search-popup__panel {
        padding: 1.15rem 1rem 1.15rem;
        border-radius: 18px;
    }

    .search-popup__field {
        flex-wrap: wrap;
        min-height: 0;
        padding: 0.55rem;
        gap: 0.45rem;
    }

    .search-popup__form__input {
        flex: 1 1 calc(100% - 2rem);
        height: 40px;
        font-size: 0.95rem;
    }

    .search-popup__btn {
        width: 100%;
        min-height: 42px;
    }

    .search-popup__results,
    #sonuclar {
        max-height: min(50vh, 360px);
    }

    .topbar-lang-icon {
        display: none;
    }

    .topbar-lang-option {
        min-height: 26px;
        padding: 0.15rem 0.5rem;
    }

    .mobile-lang-switch {
        display: block;
    }

    .mobile-topbar-contacts {
        display: grid;
    }
    .section-padding {
        padding: 80px 0;
    }
    .mobile-menu-btn {
        display: flex;
        flex-shrink: 0;
        margin-left: auto;
        z-index: 3;
    }
    .mobile-menu-overlay,
    .mobile-menu {
        z-index: 1200;
    }

    .mobile-menu-overlay {
        top: var(--header-height);
        bottom: 0;
        left: 0;
        right: 0;
    }

    .mobile-menu {
        top: var(--header-height);
        height: calc(100dvh - var(--header-height));
        max-height: calc(100dvh - var(--header-height));
        padding: 1rem 1.15rem calc(1rem + env(safe-area-inset-bottom, 0px));
    }

    .site-header {
        z-index: 1210;
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
    }

    .site-header .navbar-main,
    .site-header .navbar,
    .header-container {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: clip;
    }
    .site-header .navbar-main {
        overflow-x: clip;
    }
    .header-container {
        padding: 0 1.25rem;
        gap: 0.5rem;
    }
    .navbar-brand {
        flex-shrink: 0;
        min-width: 0;
        max-width: calc(100% - 3rem);
        margin-right: 0.35rem;
    }
    .navbar-brand .logo-img {
        width: auto;
        max-width: 148px;
        height: 40px;
        object-fit: contain;
    }
    #mainNav {
        display: none !important;
    }
    .hero-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .hero-controls {
        flex-wrap: wrap;
        gap: 1rem;
        bottom: 2rem;
    }
    .hero-progress-wrap {
        order: 3;
        flex: 1 1 100%;
        max-width: 100%;
    }
    .hero-scroll-hint {
        display: none;
    }
    /* Hero visual tablet */
    .hero-visual {
        max-width: 380px;
        margin-top: 1rem;
    }
    .hero-float-card-1 {
        left: 0;
    }
    .hero-float-card-2 {
        right: 0;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid::before {
        display: none;
    }
    .services-checker {
        grid-template-columns: repeat(2, 1fr);
    }
    .svc-p1 {
        grid-column: 1 / 3;
        min-height: auto;
    }
    .svc-p8 {
        grid-column: 1 / 3;
    }
    .svc-p9 {
        grid-column: 1 / 3;
        grid-template-columns: 1fr;
        text-align: left;
    }
    .svc-p9 .service-index {
        display: none;
    }
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-top {
        padding: 3rem 0 2.5rem;
    }
    .mockup-float-card {
        right: 10px;
        padding: 0.75rem 1rem;
    }
}


/* --------------------------------------------------------------------------
   Page content gutters (tablet & mobile)
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    :root {
        --page-inline-pad: 1.25rem;
    }

    /* <main> yalnızca anasayfada var; iç sayfalar da aynı yan boşluğu alsın */
    main .container,
    .container {
        padding-left: var(--page-inline-pad);
        padding-right: var(--page-inline-pad);
    }
}

@media (max-width: 767.98px) {
    :root {
        --page-inline-pad: 1.35rem;
    }

    .blog-detail-hero-inner,
    .service-detail-banner-inner,
    .pfd-hero-inner {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
    .pfd-hero-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgb(15 23 42 / 85%) 0%, rgb(15 23 42) 100%);
    }
    .pfd-hero-tags {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   Mobile (max 767px)
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
    .section-padding {
        padding: 60px 0;
    }
    .section-header {
        margin-bottom: 2.5rem;
    }
    .header-container {
        padding: 0 1.25rem;
    }
    .logo-img {
        height: 32px;
    }
    /* Hero Mobile */
    .hero-section {
        --hero-height: max(var(--hero-min-height), 100svh);
    }
    .hero-swiper {
        height: var(--hero-height);
        min-height: var(--hero-height);
    }
    .hero-content .min-vh-100 {
        min-height: auto !important;
        padding-top: 0;
        padding-bottom: 120px;
    }
    /* Hero visual mobile */
    .hero-visual {
        max-width: 320px;
        margin: 2rem auto 0;
    }
    .hero-float-card {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    .hero-float-card-1 {
        top: 5%;
        left: -4%;
    }
    .hero-float-card-2 {
        bottom: 8%;
        right: -4%;
    }
    .hero-float-card i {
        width: 30px;
        height: 30px;
        font-size: 0.8125rem;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    .stats-header {
        margin-bottom: 2rem;
    }
    .stat-card {
        padding: 1.5rem 1rem;
    }
    .stat-icon-wrap {
        width: 52px;
        height: 52px;
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    .stat-desc {
        display: none;
    }
    .service-index {
        font-size: 2rem;
    }
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    .hero-desc {
        font-size: 0.9375rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }
    .hero-controls {
        padding: 0 1.25rem;
        bottom: 1.5rem;
    }
    .hero-nav-buttons {
        margin-left: auto;
    }
    .hero-nav-btn {
        width: 44px;
        height: 44px;
    }
    .hero-counter {
        font-size: 1rem;
    }
    .hero-current {
        font-size: 1.25rem;
    }
    .shape-1,
    .shape-2,
    .shape-5 {
        display: none;
    }
    /* About Mobile */
    .about-features {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
    .about-feature-card {
        width: 100%;
        min-width: 0;
        gap: 0.65rem;
        padding: 0.9rem 0.85rem;
    }
    .about-feature-card i {
        flex-shrink: 0;
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    .about-feature-card strong {
        font-size: 1.05rem;
    }
    .about-feature-card span {
        display: block;
        font-size: 0.75rem;
        line-height: 1.3;
    }
    .about-mockup {
        min-height: 320px;
    }
    .mockup-laptop {
        width: 90%;
    }
    .mockup-phone {
        width: 40%;
    }
    .mockup-float-card {
        display: none;
    }
    /* Services Mobile */
    .services-checker {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .svc-p1,
    .svc-p2,
    .svc-p3,
    .svc-p4,
    .svc-p5,
    .svc-p6,
    .svc-p7,
    .svc-p8,
    .svc-p9 {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: auto;
    }
    .svc-p9 {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .service-card {
        padding: 1.5rem;
    }
    .service-link {
        opacity: 1;
        transform: translateY(0);
    }
    /* Stats Mobile */
    .stats-section {
        padding: 60px 0;
    }
    .stat-card {
        padding: 1.5rem 1rem;
    }
    .stat-number {
        font-size: 2rem;
    }
    /* Anasayfa portfolyo — CSS masonry mobil */
    .portfolio-section .portfolio-masonry {
        column-count: 1;
        --pf-masonry-gap: 1rem;
    }
    .portfolio-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(15, 23, 42, 0.75) 0%, transparent 60%);
    }
    .portfolio-overlay h3 {
        transform: translateY(0);
        font-size: 1rem;
    }
    /* References Grid Mobile */
    .references-shell {
        width: min(100%, calc(100% - 2rem));
        max-width: 100%;
    }
    .references-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .ref-cell {
        padding: 0.85rem 0.9rem;
    }
    .ref-cell img {
        max-width: min(96%, 200px);
        max-height: 82%;
    }
    .ref-cta-text {
        font-size: 0.6875rem;
        max-width: 8.5em;
    }
    .ref-corner {
        width: 14px;
        height: 14px;
    }
    .ref-corner::before {
        width: 14px;
    }
    .ref-corner::after {
        height: 14px;
    }
    /* Why Us Mobile */
    .why-card {
        padding: 2rem 1.5rem;
    }
    .why-us-section .row>[class*="col-"]:nth-child(odd) .why-card:hover,
    .why-us-section .row>[class*="col-"]:nth-child(even) .why-card:hover {
        transform: rotateY(8deg) rotateX(-4deg) translateY(-10px) translateZ(12px);
    }
    /* Process Mobile — Vertical Timeline */
    .process-shell {
        max-width: min(100%, calc(100% - 2rem));
    }
    .process-steps {
        grid-template-columns: 1fr;
        gap: 0;
        position: relative;
        padding-left: 2rem;
    }
    .process-steps::before {
        content: '';
        position: absolute;
        left: 23px;
        top: 24px;
        bottom: 24px;
        width: 2px;
        background: rgba(46, 168, 255, 0.2);
    }
    .process-step {
        display: flex;
        align-items: flex-start;
        gap: 1.25rem;
        text-align: left;
        margin-bottom: 1.5rem;
    }
    .process-number {
        margin: 0;
        flex-shrink: 0;
        width: 48px;
        height: 48px;
    }
    .process-content {
        flex: 1;
        text-align: left;
    }
    .process-line {
        display: none;
    }
    /* Blog Mobile */
    .blog-body {
        padding: 1.25rem;
    }
    .blog-body h3 {
        font-size: 1rem;
    }
    /* Footer Mobile */
    .footer-zone,
    .site-footer {
        overflow-x: clip;
        max-width: 100%;
    }
    .cta-contact-band {
        padding: 2.75rem 0;
    }
    .cta-contact-band .container-fluid {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
    .cta-contact-card {
        min-height: auto;
        padding: 0.95rem 1rem;
    }
    .cta-contact-card-body strong {
        font-size: 0.8125rem;
    }
    .cta-contact-cta {
        padding: 1rem;
    }
    .footer-top {
        padding: 2.5rem 0 2rem;
    }
    .footer-top .container,
    .footer-bottom .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    .footer-top .row>[class*="col-"] {
        min-width: 0;
    }
    .footer-brand img {
        max-width: 160px;
        height: auto;
    }
    .footer-menu-premium a,
    .footer-contact-premium a {
        margin: 0;
        padding: 0.5rem 0;
        gap: 0.75rem;
    }
    .footer-menu-icon {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.875rem;
    }
    .footer-menu-text strong {
        font-size: 0.875rem;
    }
    .footer-bottom-inner {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    .footer-copy {
        font-size: 0.8125rem;
        line-height: 1.5;
    }
    .footer-bottom-links {
        gap: 0.75rem 1rem;
    }
    .footer-nav-panel {
        margin-bottom: 0.5rem;
    }
    .footer-menu-text small {
        display: none;
    }
    .footer-top .row > .footer-menu-col {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .footer-menu-col .footer-title {
        font-size: 1rem;
        margin-bottom: 0.85rem;
    }
    .footer-menu-col .footer-menu-premium a {
        grid-template-columns: auto 1fr;
        gap: 0.5rem;
        padding: 0.4rem 0;
    }
    .footer-menu-col .footer-menu-arrow {
        display: none;
    }
    .footer-menu-col .footer-menu-icon {
        width: 1.85rem;
        height: 1.85rem;
        border-radius: 9px;
        font-size: 0.75rem;
    }
    .footer-menu-col .footer-menu-text strong {
        font-size: 0.8125rem;
        overflow-wrap: anywhere;
    }
    .pf-pagination-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.35rem;
    }
    .pf-page-numbers {
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
    }
    .pf-page-num {
        min-width: 2.15rem;
        height: 2.15rem;
        font-size: 0.8125rem;
    }
    .pf-pagination-meta {
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 0.5rem;
        text-align: center;
    }
    /* Fixed Buttons Mobile */
    .fixed-actions {
        bottom: 1.25rem;
        right: 1.25rem;
    }
    .fixed-btn {
        width: 48px;
        height: 48px;
        font-size: 1.125rem;
    }
    .fixed-btn-tooltip {
        display: none;
    }
    .hero-float-icon {
        display: none;
    }
    .hero-lines-canvas {
        display: none;
    }
    .footer-lines-canvas {
        display: none;
    }
    body.custom-cursor-active {
        cursor: auto;
    }
    .custom-cursor {
        display: none !important;
    }
    .testimonial-card {
        padding: 2rem 1.5rem;
    }
}


/* --------------------------------------------------------------------------
   Small Mobile (max 480px)
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {
    .topbar-social-link:nth-child(n+3) {
        display: none;
    }

    .references-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .ref-cell {
        padding: 0.55rem;
    }
    .ref-cell img {
        max-width: 92%;
        max-height: 76%;
    }
    .ref-cta-text {
        font-size: 0.625rem;
        max-width: 7.5em;
        line-height: 1.25;
    }
    .ref-corner,
    .ref-corner::before,
    .ref-corner::after {
        width: 10px;
        height: 10px;
    }
    .ref-corner::before {
        height: 1px;
    }
    .ref-corner::after {
        width: 1px;
    }
    .hero-title {
        font-size: 1.75rem;
    }
    .section-title {
        font-size: 1.625rem;
    }
    .btn-primary-glow,
    .btn-glass {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    .hero-slide-indicators {
        gap: 0.5rem;
    }
    .hero-indicator {
        width: 28px;
    }
    .hero-indicator.active {
        width: 40px;
    }
}


/* --------------------------------------------------------------------------
   Landscape Mobile
   -------------------------------------------------------------------------- */

@media (max-height: 500px) and (orientation: landscape) {
    .hero-section,
    .hero-swiper {
        height: var(--hero-height);
        min-height: var(--hero-height);
    }
    .hero-content .min-vh-100 {
        min-height: auto !important;
        padding-top: 0;
        padding-bottom: 7rem;
    }
    .hero-float-icon {
        display: none;
    }
    .marquee-content span:not(.marquee-dot) {
        font-size: 0.8125rem;
    }
    .testimonial-card {
        padding: 2rem 1.5rem;
    }
    body.custom-cursor-active {
        cursor: auto;
    }
    .custom-cursor {
        display: none;
    }
}


/* --------------------------------------------------------------------------
   Services Page
   -------------------------------------------------------------------------- */

@media (max-width: 991px) {
    .services-page-hero {
        padding: calc(var(--header-height) + 2.5rem) 0 3.5rem;
    }
    .svc-page-card,
    .svc-page-card--reverse {
        grid-template-columns: 1fr;
        margin-left: 0;
    }
    .svc-page-card--reverse .svc-page-media-wrap,
    .svc-page-card--reverse .svc-page-body {
        order: unset;
    }
    .svc-page-stack::before,
    .svc-page-rail-dot {
        display: none;
    }
    .svc-page-card {
        min-height: auto;
    }
    .svc-page-media-wrap {
        min-height: 280px;
    }
    .services-page-stats {
        grid-template-columns: 1fr;
    }
    .svc-page-body {
        padding: 1.75rem 1.5rem;
    }
}

@media (max-width: 767px) {
    .page-breadcrumb-list {
        border-radius: var(--radius-md);
        padding: 0.4rem;
    }
    .page-breadcrumb-item a,
    .page-breadcrumb-item.is-current>span {
        padding: 0.4rem 0.7rem;
        font-size: 0.75rem;
    }
    .services-page-stat-content strong {
        font-size: 1.375rem;
    }
    .services-page-stat-icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    .services-page-cta {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 991px) {
    .page-service-detail {
        --service-sidebar-sticky-gap: 2.5rem;
    }
    .service-detail-sidebar {
        position: static;
    }
    .ssc-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
        padding-left: 0;
    }
    .ssc-rail,
    .ssc-link-node {
        display: none;
    }
    .ssc-link {
        grid-template-columns: 2rem 1fr auto;
        padding: 0.7rem 0.65rem;
        transform: none !important;
    }
    .ssc-link-index {
        grid-column: 1;
        grid-row: 1;
    }
    .ssc-link-icon {
        display: none;
    }
    .ssc-link-text {
        grid-column: 2 / -1;
        grid-row: 1;
    }
    .ssc-link-arrow {
        grid-column: 3;
        grid-row: 1;
        opacity: 0.65;
        transform: none;
    }
    .ssc-link.is-active .ssc-link-arrow {
        opacity: 1;
    }
    .service-detail-content {
        padding: 2.5rem 2rem;
    }

    .sayfa-detay__icerik,
    .blog-detail-content {
        font-size: 1rem;
    }

    .sayfa-detay__icerik h2,
    .blog-detail-content h2 {
        margin-top: 2rem;
        padding-left: 0.85rem;
    }

    .sayfa-detay__icerik li,
    .blog-detail-content li {
        padding: 0.65rem 0.85rem 0.65rem 2.15rem;
    }

    .service-pager-nav {
        min-height: 96px;
        padding: 0.9rem;
        gap: 0.75rem;
    }
    .service-pager-nav-thumb {
        width: 3.75rem;
        height: 3.75rem;
        border-radius: 14px;
    }
}

@media (max-width: 767px) {
    .service-detail-banner-title {
        font-size: 2rem;
    }
    .ssc-nav {
        grid-template-columns: 1fr;
    }
    .service-detail-content {
        padding: 2rem 1.5rem;
    }
    .service-pager-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .service-pager-nav {
        min-height: auto;
        flex-wrap: wrap;
    }
    .service-pager-nav--prev .service-pager-nav-copy {
        order: 2;
        flex: 1 1 calc(100% - 3.5rem);
        text-align: left;
        align-items: flex-start;
    }
    .service-pager-nav--prev .service-pager-nav-arrow {
        order: 1;
    }
    .service-pager-nav--prev .service-pager-nav-thumb {
        order: 3;
        margin-left: auto;
    }
    .service-pager-nav--next .service-pager-nav-thumb {
        order: 1;
    }
    .service-pager-nav--next .service-pager-nav-copy {
        order: 2;
        flex: 1 1 calc(100% - 3.5rem);
        text-align: left;
        align-items: flex-start;
    }
    .service-pager-nav--next .service-pager-nav-arrow {
        order: 3;
        margin-left: auto;
    }
}

@media (max-width: 991px) {
    .page-portfolio-detail {
        --pfd-sticky-gap: 2rem;
    }
    .pfd-sidebar {
        position: static;
    }
    .pfd-hero-meta {
        grid-template-columns: repeat(3, 1fr);
    }
    .pfd-content {
        padding: 2rem 1.75rem;
    }
    .pfd-screens-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .pfd-screens-actions {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    .footer-light-social-link {
        width: 70px;
        height: 70px;
        font-size: 1.3375rem;
    }
    .footer-bottom {
        padding-bottom: 2em;
    }
}

@media (max-width: 767px) {
    .pfd-hero {
        min-height: auto;
        height: auto;
        padding-bottom: 0;
    }
    .pfd-hero-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .pfd-hero-site {
        width: 100%;
        justify-content: flex-start;
    }
    .pfd-hero-site-body {
        flex: 1;
    }
    .pfd-hero-site-arrow {
        margin-left: auto;
    }
    .pfd-hero-meta {
        grid-template-columns: repeat(2, 1fr);
    }
    .pfd-showcase {
        margin-top: -1.5rem;
    }
    .pfd-block {
        padding-left: 2.25rem;
    }
    .pfd-block-num {
        font-size: 1.75rem;
    }
    .pfd-related-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .pfd-pager-nav {
        min-height: 96px;
        padding: 0.9rem;
        gap: 0.75rem;
    }
    .pfd-pager-thumb {
        width: 56px;
        height: 56px;
        border-radius: 12px;
    }
    .pfd-pager-copy strong {
        font-size: 0.9rem;
    }
    .pfd-screens {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    .pfd-gallery {
        /* Mobilde yükseklik içeriğe göre; görsel tam genişlik */
        height: auto;
    }
    .pfd-gallery-stage {
        flex: none;
        height: auto;
    }
    /* Tüm ekranlar aynı yükseklikte; tam görsel dokununca Fancybox'ta açılır */
    .pfd-gallery-swiper,
    .pfd-gallery-swiper .swiper-slide,
    .pfd-gallery-slide-media {
        width: 100%;
        height: auto;
        max-height: none;
    }
    .pfd-gallery-slide-frame {
        display: block;
        width: 100%;
        height: auto;
        max-height: none;
        aspect-ratio: 6 / 5;
        overflow: hidden;
    }
    .pfd-gallery-slide-media img {
        display: block;
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: none;
        object-fit: cover;
        object-position: top center;
    }
    .pfd-gallery-footer {
        padding: 0.95rem 0 1.1rem;
    }
    .pfd-gallery-toolbar {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .pfd-gallery-controls {
        width: 100%;
    }
    .pfd-gallery-open-all span {
        display: none;
    }
    .pfd-screens-stats {
        flex-wrap: wrap;
    }
}


/* --------------------------------------------------------------------------
   Print Styles
   -------------------------------------------------------------------------- */

@media print {
    .site-header,
    .fixed-actions,
    .preloader,
    .scroll-progress,
    .custom-cursor,
    .noise-overlay,
    .hero-controls,
    .hero-shapes,
    .hero-floating-icons,
    .hero-lines-canvas,
    .mobile-menu,
    .mobile-menu-overlay {
        display: none !important;
    }
    body {
        background: white;
        color: black;
    }
    .hero-section {
        min-height: auto;
        page-break-after: always;
    }
}


/* YENİ STYLE */

@media (max-width: 1150px) {
    .navbar-nav-main>.nav-item:nth-child(5) {
        display: none;
        visibility: hidden;
    }
}

@media (max-width: 1025px) {
    .navbar-nav .nav-link .nav-icon {
        display: none;
        visibility: hidden;
    }
    .navbar-nav .nav-link {
        padding: 0.5rem 0.9rem !important;
        font-size: 1.05rem;
    }
}

/* iOS Safari, 16px altı yazı boyutlu alanlara odaklanınca sayfayı otomatik yakınlaştırır */
@media (hover: none) and (pointer: coarse) {
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]):not([type="color"]),
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* --------------------------------------------------------------------------
   Mobil dikey boşluk sıkılaştırma (masaüstü değerleri mobilde fazla kalıyordu)
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    .section-padding {
        padding: 48px 0;
    }
    .section-header {
        margin-bottom: 2rem;
    }
    .stats-section {
        padding: 48px 0;
    }

    /* Sayfa üst alanları (header yüksekliği + iç boşluk) */
    .contact-page-hero {
        padding: calc(var(--header-height) + 2.5rem) 0 2.5rem;
    }
    .blog-page-hero {
        padding: calc(var(--header-height) + 2.5rem) 0 2.5rem;
    }
    .services-page-hero {
        padding: calc(var(--header-height) + 2.5rem) 0 2.5rem;
    }
    .page-services .services-page-hero,
    .page-corporate .services-page-hero,
    .page-references .services-page-hero {
        padding: calc(var(--header-height) + 2rem) 0 2rem;
    }
    .pf-hero {
        padding: calc(var(--header-height) + 2rem) 0 2.5rem;
    }
    .blog-detail-hero-inner,
    .service-detail-banner-inner,
    .pfd-hero-inner {
        padding-top: 2.5rem;
        padding-bottom: 2rem;
    }

    /* Hizmetler / hizmet detay */
    .services-page-cta {
        margin-top: 2.5rem;
    }
    .services-page-list--uniform {
        padding-bottom: 2.5rem;
    }
    .service-detail-main {
        padding-top: 2.5rem;
    }
    .service-detail-pager {
        margin-top: 2.5rem;
        padding-top: 1.75rem;
    }

    /* Blog detay */
    .blog-detail-related {
        margin-top: 2.5rem;
    }
    .blog-detail-pager {
        margin-top: 2.5rem;
    }

    /* Portfolyo liste / detay */
    .pf-showcase-foot {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    .pf-pagination {
        padding-top: 1.75rem;
        padding-bottom: 2rem;
    }
    .pfd-main {
        padding-top: 2rem;
    }
    .pfd-pager {
        padding: 2rem 0 2.5rem;
    }

    /* Referanslar sayfası */
    .references-section--page.section-padding {
        padding-bottom: 3rem;
    }

    /* İletişim */
    .contact-channels {
        padding-bottom: 2.5rem;
    }
    .contact-main {
        padding-bottom: 3rem;
    }
    .contact-map-section {
        padding: 2.5rem 0 3rem;
    }
    .contact-faq {
        padding-bottom: 3rem;
    }

    /* SSS */
    .sss-page {
        padding: 2.5rem 0 3rem;
    }
}

/* --------------------------------------------------------------------------
   Mobil başlık boyutları (clamp alt sınırları mobilde fazla büyük kalıyordu)
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    .section-title {
        font-size: 1.75rem;
    }
    .stats-header-title {
        font-size: 1.625rem;
    }
    .contact-page-title {
        font-size: 1.875rem;
    }
    .blog-page-title,
    .pf-hero-title {
        font-size: 2rem;
    }
    .services-page-title {
        font-size: 1.875rem;
    }
    .page-services .services-page-title,
    .page-references .services-page-title {
        font-size: 1.625rem;
    }
    .service-detail-banner-title {
        font-size: 1.75rem;
    }
    .blog-detail-hero-title {
        font-size: 1.625rem;
    }
    .contact-map-title,
    .sss-page__title {
        font-size: 1.625rem;
    }
    .contact-faq-title,
    .pfd-screens-title {
        font-size: 1.5rem;
    }
    .contact-form-title {
        font-size: 1.375rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.625rem;
    }
}

/* Blog: kenar çubuğu yazı başlıkları tek satır */
.blog-sidebar-post-body strong {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

@media (max-width: 767.98px) {
    /* Blog hero istatistikleri: 3 kutu yan yana */
    .blog-page-hero-panel {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.5rem;
        padding: 0.85rem;
    }
    .blog-page-hero-stat:last-of-type {
        grid-column: auto;
    }
    .blog-page-hero-stat {
        padding: 0.7rem 0.35rem;
    }
    .blog-page-hero-stat strong {
        font-size: 1.15rem;
    }
    .blog-page-hero-stat span {
        font-size: 0.625rem;
    }

    /* Öne çıkan blog kartı: metin görselin üstünde, görsel alanı metne yetecek kadar uzun */
    .blog-journal-card--hero .blog-journal-media {
        aspect-ratio: 4 / 5;
    }
    .blog-journal-card--hero .blog-journal-body {
        gap: 0.55rem;
        padding: 1.15rem;
        background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.7) 28%, rgba(15, 23, 42, 0.92) 100%);
    }
    .blog-journal-card--hero .blog-journal-title {
        font-size: 1.25rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .blog-journal-card--hero .blog-journal-excerpt {
        font-size: 0.875rem;
        line-height: 1.55;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* --------------------------------------------------------------------------
   Hizmetlerimiz hero istatistikleri + breadcrumb (mobil)
   -------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
    .page-services .services-page-hero-stats-panel .services-page-stat-card {
        gap: 0.45rem;
        padding: 0.7rem 0.6rem;
    }
    .page-services .services-page-hero-stats-panel .services-page-stat-icon {
        width: 32px;
        height: 32px;
        font-size: 0.8125rem;
    }
    .page-services .services-page-hero-stats-panel .services-page-stat-content strong {
        font-size: 1.0625rem;
    }
    .page-services .services-page-hero-stats-panel .services-page-stat-content span {
        font-size: 0.6875rem;
        line-height: 1.3;
    }
}

@media (max-width: 767.98px) {
    /* Tek satır: Anasayfa yalnızca ikon, uzun başlıklar üç noktayla kısalır */
    .page-breadcrumb-list {
        max-width: 100%;
        flex-wrap: nowrap;
    }
    .page-breadcrumb-item {
        min-width: 0;
    }
    .page-breadcrumb-sep {
        flex-shrink: 0;
    }
    .page-breadcrumb-item a,
    .page-breadcrumb-item.is-current > span {
        max-width: 100%;
        min-width: 0;
    }
    .page-breadcrumb-item a > i,
    .page-breadcrumb-item.is-current > span > i {
        flex-shrink: 0;
    }
    .page-breadcrumb-item a > span,
    .page-breadcrumb-item.is-current > span > span {
        min-width: 0;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    .page-breadcrumb-item:first-child {
        flex-shrink: 0;
    }
    .page-breadcrumb-item:first-child a > span {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

/* --------------------------------------------------------------------------
   Projeler listesi (mobil)
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    /* Kategori filtresi: tek satır, yatay kaydırılabilir şerit */
    .page-portfolio .pf-filters--category {
        min-width: 0;
        max-width: none;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 0.4rem;
        margin: 0 -1rem;
        padding: 0.15rem 1rem 0.35rem;
        scroll-snap-type: x proximity;
        scroll-padding-inline: 1rem;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 1rem, #000 calc(100% - 2rem), transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0, #000 1rem, #000 calc(100% - 2rem), transparent 100%);
    }
    .page-portfolio .pf-filters--category::-webkit-scrollbar {
        display: none;
    }
    .page-portfolio .pf-filters--category .pf-filter-btn {
        flex: 0 0 auto;
        min-height: 40px;
        padding: 0.5rem 0.9rem;
        font-size: 0.8125rem;
        scroll-snap-align: start;
    }
    .page-portfolio .pf-filters--category .pf-filter-btn.active,
    .page-portfolio .pf-filters--category .pf-filter-btn:hover {
        transform: none;
    }
    .page-portfolio .pf-filters--category .pf-filter-btn.active {
        box-shadow: 0 6px 16px rgba(46, 168, 255, 0.28);
    }
    /* Kaydırma göstergesi (pages.js → initPortfolioFilterRail oluşturur) */
    .pf-filter-scrollbar {
        position: relative;
        height: 4px;
        margin-top: 0.15rem;
        border-radius: 999px;
        background: rgba(46, 168, 255, 0.14);
        overflow: hidden;
    }
    .pf-filter-scrollbar[hidden] {
        display: none;
    }
    .pf-filter-scrollbar-thumb {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        min-width: 24px;
        border-radius: inherit;
        background: var(--gradient-primary, var(--primary));
    }
    .pf-filter-head {
        padding: 0.85rem 0 0.95rem;
    }
    .pf-filter-groups {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.85rem;
    }
    .pf-filter-group {
        min-width: 0;
    }
    .pf-filter-group-label {
        font-size: 0.6875rem;
    }

    /* Sektör seçimi: tam genişlik, rahat dokunulabilir yükseklik */
    .pf-sector-select {
        min-height: 44px;
        border-radius: 12px;
        font-size: 0.875rem;
    }

    /* Mobilde 2 sütun (inc/menu.php → MAVIKEDI_PORTFOLYO_MOBIL_IKI_SUTUN) */
    .page-portfolio .portfolio-masonry.pf-masonry--mobile-2col {
        --pf-masonry-cols: 2;
        --pf-masonry-gap: 6px;
    }
    .page-portfolio .pf-masonry--mobile-2col.pf-masonry--uniform > .pf-item {
        aspect-ratio: 3 / 4;
    }
    .page-portfolio .pf-masonry--mobile-2col .pf-item {
        border-radius: 10px;
    }
    .page-portfolio .pf-masonry--mobile-2col .pf-overlay {
        padding: 0.65rem 0.7rem 0.75rem;
    }
    .page-portfolio .pf-masonry--mobile-2col .pf-cat {
        max-width: 100%;
        overflow: hidden;
        padding: 0.22rem 0.5rem;
        font-size: 0.5625rem;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    .page-portfolio .pf-masonry--mobile-2col .pf-item-action {
        display: none;
    }
    .page-portfolio .pf-masonry--mobile-2col .portfolio-overlay h3 {
        font-size: 0.875rem;
        line-height: 1.25;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .page-portfolio .pf-masonry--mobile-2col .pf-item-meta {
        font-size: 0.625rem;
        gap: 0.35rem;
    }
}

/* Kurumsal / hizmet / sayfa detay: tek sütuna düşünce önce içerik, sonra kenar menü */
@media (max-width: 991.98px) {
    .service-detail-layout > .service-detail-sidebar {
        order: 2;
    }
}

@media (max-width: 767.98px) {
    .service-detail-banner {
        min-height: 300px;
        height: auto;
    }
}

/* İletişim: telefon + diğer kanallar mobilde formun üstünde, masaüstünde sağ sütunda */
.contact-quick-mobile {
    display: none;
}

.contact-aside-quick {
    display: contents;
}

@media (max-width: 991.98px) {
    .contact-quick-mobile {
        display: block;
    }
    .contact-aside-quick {
        display: none;
    }
}

/* Mobil menü: iletişim butonlarında ikon ve metin yan yana */
.mobile-topbar-link {
    flex-direction: row;
    gap: 0.5rem;
    min-height: 46px;
    padding: 0.75rem 0.6rem;
    font-size: 0.8125rem;
    line-height: 1.2;
    white-space: nowrap;
}

.mobile-topbar-link i {
    font-size: 1rem;
}

/* Mobil menü: alt menüler açılınca çıkan kaydırma çubuğu açık zeminde görünür olsun */
.mobile-menu-nav {
    scrollbar-width: thin;
    scrollbar-color: rgb(46 168 255 / .65) rgb(46 168 255 / .1);
    /* iOS kaydırma çubuğunu renklendirmeye izin vermediği için devam eden içerik kenar gölgesiyle belirtilir */
    background:
        linear-gradient(#fff 30%, rgb(255 255 255 / 0)) center top,
        linear-gradient(rgb(255 255 255 / 0), #fff 70%) center bottom,
        radial-gradient(farthest-side at 50% 0, rgb(46 168 255 / .28), transparent) center top,
        radial-gradient(farthest-side at 50% 100%, rgb(46 168 255 / .28), transparent) center bottom;
    background-repeat: no-repeat;
    background-size: 100% 36px, 100% 36px, 100% 12px, 100% 12px;
    background-attachment: local, local, scroll, scroll;
}

.mobile-menu-nav::-webkit-scrollbar,
.sonuc_listele::-webkit-scrollbar,
#sonuclar::-webkit-scrollbar {
    width: 5px;
}

.mobile-menu-nav::-webkit-scrollbar-track,
.sonuc_listele::-webkit-scrollbar-track,
#sonuclar::-webkit-scrollbar-track {
    background: rgb(46 168 255 / .1);
    border-radius: 999px;
}

.mobile-menu-nav::-webkit-scrollbar-thumb,
.sonuc_listele::-webkit-scrollbar-thumb,
#sonuclar::-webkit-scrollbar-thumb {
    background: rgb(46 168 255 / .65);
    border-radius: 999px;
}

/* Arama popup sonuç listesi: aynı görünür kaydırma çubuğu + iOS için kenar gölgesi */
.sonuc_listele,
#sonuclar {
    scrollbar-width: thin;
    scrollbar-color: rgb(46 168 255 / .65) rgb(46 168 255 / .1);
}

.sonuc_listele {
    background:
        linear-gradient(#fff 30%, rgb(255 255 255 / 0)) center top,
        linear-gradient(rgb(255 255 255 / 0), #fff 70%) center bottom,
        radial-gradient(farthest-side at 50% 0, rgb(46 168 255 / .28), transparent) center top,
        radial-gradient(farthest-side at 50% 100%, rgb(46 168 255 / .28), transparent) center bottom,
        rgb(255 255 255 / .97);
    background-repeat: no-repeat;
    background-size: 100% 36px, 100% 36px, 100% 12px, 100% 12px, auto;
    background-attachment: local, local, scroll, scroll, scroll;
}
