/* ═══════════════════════════════════════ */
/* FOM İZOLASYON v2 - Premium Styles     */
/* ═══════════════════════════════════════ */

/* ── Base ─────────────────────────────── */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

::selection {
    background: #D32F2F;
    color: white;
}

/* ── Custom Scrollbar ─────────────────── */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #D32F2F, #B71C1C);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #B71C1C, #9A1616);
}

/* ── Animations ───────────────────────── */
@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes spin-slow-reverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.animate-spin-slow {
    animation: spin-slow 30s linear infinite;
}

.animate-spin-slow-reverse {
    animation: spin-slow-reverse 25s linear infinite;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* ── Hero Slider ──────────────────────── */
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* Content item entrance animation */
@keyframes hero-in {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-slide.active .hero-content-item {
    animation: hero-in 0.65s ease forwards;
    opacity: 0;
}

/* Dot nav */
.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s, width 0.3s;
    padding: 0;
}

.hero-dot.active {
    background: #D32F2F;
    width: 28px;
    border-radius: 5px;
    transform: none;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* Hero slide image subtle zoom */
.hero-slide-img {
    transition: transform 6s ease;
}

.hero-slide.active .hero-slide-img {
    transform: scale(1.05);
}

/* ── Navbar ───────────────────────────── */
.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: #334155;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #D32F2F;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #D32F2F, #B71C1C);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.navbar-scrolled {
    background: #ffffff !important;
    box-shadow: 0 4px 24px -8px rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid #f1f5f9;
}

/* Mobile Menu Links */
.mobile-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: #334155;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.mobile-link:hover {
    background: #FFEBEE;
    color: #D32F2F;
    padding-left: 1.25rem;
}

/* Mobile sub-link (accordion children) */
.mobile-sub-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #475569;
    border-radius: 0.625rem;
    transition: all 0.2s ease;
}

.mobile-sub-link:hover {
    background: #f8fafc;
    color: #D32F2F;
}

/* Mega Menu Items */
.mega-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    border-radius: 1rem;
    transition: all 0.25s ease;
    cursor: pointer;
}

.mega-item:hover {
    background: #fafafa;
}

.mega-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    transition: all 0.25s ease;
}

/* Gallery card as anchor */
a.gallery-card {
    display: block;
    text-decoration: none;
}

/* Video play overlay */
.gallery-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: none;
}

.play-circle {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, background 0.3s ease;
}

.play-circle i {
    color: #D32F2F;
    font-size: 1.25rem;
    margin-left: 4px;
    /* optical centre for play icon */
}

.gallery-video:hover .play-circle {
    transform: scale(1.15);
    background: #D32F2F;
}

.gallery-video:hover .play-circle i {
    color: white;
}



/* ── Gallery Slider ───────────────────── */
.gallery-slider .slick-list {
    margin: 0 -8px;
    overflow: visible;
}

.gallery-slider .slick-slide {
    padding: 0 8px;
}

.gallery-card {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 40px -15px rgba(0, 0, 0, 0.15);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -20px rgba(0, 0, 0, 0.25);
}

.gallery-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.5) 60%, transparent 100%);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-tag {
    display: inline-block;
    background: linear-gradient(135deg, #D32F2F, #B71C1C);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Slick Custom Dots */
.gallery-slider .slick-dots {
    bottom: -50px;
}

.gallery-slider .slick-dots li button:before {
    font-size: 10px;
    color: #D32F2F;
    opacity: 0.3;
}

.gallery-slider .slick-dots li.slick-active button:before {
    opacity: 1;
    color: #D32F2F;
}

/* Slick Custom Arrows */
.gallery-slider .slick-prev,
.gallery-slider .slick-next {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.2);
    z-index: 10;
    transition: all 0.3s ease;
}

.gallery-slider .slick-prev:hover,
.gallery-slider .slick-next:hover {
    background: #D32F2F;
    box-shadow: 0 8px 30px -5px rgba(211, 47, 47, 0.4);
}

.gallery-slider .slick-prev:before,
.gallery-slider .slick-next:before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 16px;
    color: #0f172a;
    transition: color 0.3s ease;
}

.gallery-slider .slick-prev:hover:before,
.gallery-slider .slick-next:hover:before {
    color: white;
}

.gallery-slider .slick-prev:before {
    content: '\f053';
}

.gallery-slider .slick-next:before {
    content: '\f054';
}

.gallery-slider .slick-prev {
    left: -24px;
}

.gallery-slider .slick-next {
    right: -24px;
}

/* ── Service Cards ────────────────────── */
.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 1.5rem;
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #D32F2F, #B71C1C);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px -20px rgba(211, 47, 47, 0.15);
    border-color: transparent;
}

.service-icon-wrap {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FFEBEE, #fef2f2);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.5s ease;
    position: relative;
}

.service-card:hover .service-icon-wrap {
    background: linear-gradient(135deg, #D32F2F, #B71C1C);
    transform: scale(1.05) rotate(-5deg);
    box-shadow: 0 10px 30px -10px rgba(211, 47, 47, 0.4);
}

/* ── Why Us Cards ─────────────────────── */
.why-card {
    background: white;
    padding: 2rem;
    border-radius: 1.25rem;
    border: 1px solid #f1f5f9;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px -15px rgba(0, 0, 0, 0.1);
    border-color: #D32F2F20;
}

.why-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #D32F2F, #B71C1C);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.why-card:hover::after {
    transform: scaleX(1);
}

.why-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #FFEBEE, #fef2f2);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #D32F2F;
    font-size: 1.25rem;
    transition: all 0.4s ease;
}

.why-card:hover .why-icon {
    background: linear-gradient(135deg, #D32F2F, #B71C1C);
    color: white;
    transform: rotate(-5deg);
}

/* ── Contact Form ─────────────────────── */
.contact-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.875rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #1e293b;
    transition: all 0.3s ease;
    outline: none;
}

.contact-input:focus {
    border-color: #D32F2F;
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.1);
}

.contact-input::placeholder {
    color: #94a3b8;
}

/* ── Footer ───────────────────────────── */
.footer-link {
    display: flex;
    align-items: center;
    color: #94a3b8;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #D32F2F;
    padding-left: 4px;
}

/* ── Hakkımızda Section ───────────────── */
.hk-image-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem 3rem 1rem;
}

/* Accent red block positioned behind and to the right */
.hk-accent-block {
    position: absolute;
    bottom: 1.5rem;
    right: 0;
    width: 60%;
    height: 70%;
    background: linear-gradient(135deg, #D32F2F 0%, #B71C1C 100%);
    border-radius: 2rem;
    z-index: 0;
    opacity: 0.12;
}

/* Outer shape wrapper — creates the organic polygon frame */
.hk-img-shape-outer {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
}

/* Clip-path masked image container */
.hk-img-shape-inner {
    position: relative;
    width: 100%;
    border-radius: 2rem 4rem 2rem 4rem;
    overflow: hidden;
    box-shadow:
        0 30px 80px -20px rgba(211, 47, 47, 0.25),
        0 10px 30px -10px rgba(0, 0, 0, 0.2);
    clip-path: polygon(0% 6%, 6% 0%, 94% 0%, 100% 6%, 100% 94%, 94% 100%, 6% 100%, 0% 94%);
}

.hk-main-img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
    transition: transform 8s ease;
}

.hk-img-shape-inner:hover .hk-main-img {
    transform: scale(1.06);
}

/* Bottom gradient overlay */
.hk-img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(0deg, rgba(211, 47, 47, 0.55) 0%, transparent 100%);
    pointer-events: none;
}

/* Spinning outline rings */
.hk-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hk-ring-1 {
    width: calc(100% + 48px);
    height: calc(100% + 48px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1.5px dashed rgba(211, 47, 47, 0.25);
    animation: spin-slow 25s linear infinite;
}

.hk-ring-2 {
    width: calc(100% + 90px);
    height: calc(100% + 90px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(211, 47, 47, 0.10);
    animation: spin-slow-reverse 40s linear infinite;
}

/* Floating stat badges */
.hk-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    border-radius: 1rem;
    padding: 0.875rem 1.25rem;
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.18);
    z-index: 10;
    border: 1px solid #f1f5f9;
    animation: float 5s ease-in-out infinite;
}

.hk-badge-tl {
    top: 1rem;
    left: -1rem;
    animation-delay: 0s;
}

.hk-badge-br {
    bottom: 1rem;
    right: -1rem;
    animation-delay: 1.8s;
}

.hk-badge-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #FFEBEE, #fef2f2);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D32F2F;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.hk-badge-icon--alt {
    background: linear-gradient(135deg, #D32F2F, #B71C1C);
    color: white;
}

.hk-badge-num {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.hk-badge-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 2px;
}

/* Feature checklist */
.hk-feat-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.hk-feat-dot {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #D32F2F, #B71C1C);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px -4px rgba(211, 47, 47, 0.45);
}

/* ── Responsive ───────────────────────── */
@media (max-width: 768px) {

    .gallery-img {
        height: 250px;
    }

    .gallery-slider .slick-prev {
        left: 10px;
    }

    .gallery-slider .slick-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    #hero h1 {
        font-size: 2.5rem;
    }
}

/* ── Loader ───────────────────────────── */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(211, 47, 47, 0.2);
    border-top-color: #D32F2F;
    border-radius: 50%;
    animation: spin-slow 0.8s linear infinite;
}

/* ═══════════════════════════════════════ */
/* REFERANSLAR PAGE                       */
/* ═══════════════════════════════════════ */

/* ── Category Filter Buttons ─────────── */
.ref-filter-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ref-filter-btn:hover {
    border-color: #D32F2F;
    color: #D32F2F;
    background: #fef2f2;
}

.ref-filter-btn.active {
    background: linear-gradient(135deg, #D32F2F, #B71C1C);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 14px -4px rgba(211, 47, 47, 0.4);
}

/* ── Reference Cards (Grid Page) ─────── */
.ref-card {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 8px 30px -12px rgba(0, 0, 0, 0.12);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    text-decoration: none;
}

.ref-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.2);
}

.ref-card-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.ref-card:hover .ref-card-img {
    transform: scale(1.08);
}

.ref-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1.25rem;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.5) 55%, transparent 100%);
    transform: translateY(0);
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ref-card:hover .ref-card-overlay {
    padding-bottom: 1.5rem;
}

.ref-tag {
    display: inline-block;
    background: linear-gradient(135deg, #D32F2F, #B71C1C);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    border-radius: 100px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Video Play Button (Grid Page) ───── */
.ref-card-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: none;
}

.ref-play-circle {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, background 0.3s ease;
}

.ref-play-circle i {
    color: #D32F2F;
    font-size: 1.25rem;
    margin-left: 4px;
}

.ref-card:hover .ref-play-circle {
    transform: scale(1.1);
    background: #D32F2F;
}

.ref-card:hover .ref-play-circle i {
    color: white;
}

/* ── Filter Animation ────────────────── */
@keyframes refFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── Fancybox Video Wrapper ──────────── */
.fancybox-video-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.fancybox-video-wrap video {
    background: #000;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ── Responsive (Referanslar Page) ────── */
@media (max-width: 768px) {
    .ref-card-img {
        height: 220px;
    }

    .ref-card-overlay {
        transform: translateY(0);
        opacity: 1;
        padding: 1.25rem 1rem 1rem;
    }
}