:root {
    --blue-dark: #404040;
    /* NHG YapÄ± Secondary Logo Color (Dark Gray) */
    --blue-primary: #0e4446;
    /* NHG YapÄ± Primary Logo Color (Teal/Dark Green) */
    --text-dark: #333333;
    --text-light: #6b7280;
    --white: #ffffff;
    --bg-light: #f3f4f6;
}

html,
body {
    overflow-x: hidden;
    /* Sitenin sağa sola kaymasını önler */
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 100%;
    font-family: 'Inter', sans-serif;
}

/* Ã–zel TasarÄ±m Scrollbar (KaydÄ±rma Ã‡ubuÄŸu) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--blue-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--blue-dark);
}

body {
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Top Bar */
.top-bar {
    background: var(--blue-dark);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

.contact-info-right {
    text-align: right;
}

.contact-info-right span {
    margin-left: 20px;
}

/* Navbar */
header {
    border-bottom: 1px solid #eee;
    padding: 0;
    background: var(--white);
    display: flex;
    align-items: center;
    height: 82px;
    /* Sıkı bir yükseklik, beyazlığı inceltir */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    /* Yapışkan menü için hafif gölge */
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    background: var(--white);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--blue-primary);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* =========================================
   LOGO BOYUTLANDIRMA VE HÄ°ZALAMA (Ã‡Ä°FT LOGO)
   ========================================= */
.navbar .logo {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    text-decoration: none !important;
    padding: 0 !important;
    height: 82px !important;
    /* Header ile ayni boyda */
    overflow: hidden !important;
    /* Logolarin yuksek boyutunun header disina tasmasini engeller */
}

.navbar .logo img {
    max-height: 72px !important;
    /* Logoları daha net büyüttük */
    margin: 0 !important;
    max-width: 100%;
    width: auto;
    height: 100% !important;
    display: block !important;
    object-fit: contain !important;
    object-position: left center !important;
    mix-blend-mode: multiply !important;
    filter: contrast(1.15) brightness(1.05) grayscale(0) !important;
    transition: transform 0.3s ease !important;
}

.navbar .logo .nhg-navbar-logo {
    aspect-ratio: 980 / 300;
    max-width: 260px;
    mix-blend-mode: normal !important;
    filter: none !important;
}

/* Ã‡izgiyi img container marginleriyle deÄŸil, flex parent Ã¼zerinden sabit bir element olarak veriyoruz ki taÅŸmasÄ±n */
.navbar-logo-separator {
    width: 2px;
    height: 52px;
    background-color: var(--blue-primary);
    margin: 0 10px;
    display: block;
}

.navbar .logo img:hover {
    transform: scale(1.04) !important;
}

/* =========================================
   HERO BÃ–LÃœMÃœ VE ARKA PLAN SLAYT GÃ–STERÄ°SÄ°
   ========================================= */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    background: none;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Her bir slaytÄ±n ayarÄ± (SÃœREYÄ° 20 SANÄ°YEYE Ã‡IKARDIK) */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: sliderAnimation 20s infinite ease-in-out;
}

/* SLAYT RESÄ°MLERÄ° */
.slide-1 {
    background-image: url('slide/slide1.webp');
    animation-delay: 0s;
}

.slide-2 {
    background-image: url('slide/slide2.webp');
    animation-delay: 5s;
}

.slide-3 {
    background-image: url('slide/slide3.webp');
    animation-delay: 10s;
}

.slide-4 {
    background-image: url('slide/slide4.webp');
    animation-delay: 15s;
}

/* 4 RESME GÃ–RE GÃœNCELLENMÄ°Å ANÄ°MASYON MATEMATÄ°ÄÄ° */
@keyframes sliderAnimation {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    4% {
        opacity: 1;
    }

    25% {
        opacity: 1;
        transform: scale(1.05);
    }

    29% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* Karanlık oranını mobilde yazılar okunsun diye bir tık arttırdık */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Okunabilirliği 10X artıran hafif gölge */
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

/* Butonlar */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary {
    background: var(--blue-primary);
    color: var(--white);
}

.btn-primary:hover {
    background: #0a3032;
    /* Darker teal for hovering */
}

.btn-glass {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-white {
    background: var(--white);
    color: var(--blue-primary);
    font-weight: bold;
}

/* Ã–zellikler */
.features {
    padding: 80px 0;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
}

.icon-circle {
    width: 70px;
    height: 70px;
    background: #e6eeef;
    /* Very light teal */
    color: var(--blue-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

.feature-item h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.feature-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Hizmetler Anasayfa */
.services {
    background: #fafafa;
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 10px;
    /* Mobilde sağdan soldan taşmayı engeller */
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--blue-dark);
}

.section-header p {
    /* Başlığın açıklaması için ekleme */
    font-size: 1.1rem;
    color: var(--text-light);
}

.service-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: 0.3s;
    display: block;
    /* added to ensure the anchor block formatting */
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 25px;
}

.card-body h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.card-body p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.link-arrow {
    color: var(--blue-primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.service-card:hover .link-arrow {
    text-decoration: underline;
}

.center-btn {
    text-align: center;
    margin-top: 50px;
}

/* Pimapen Yetkili AlanÄ± (Koyu) */
.authorized-dark {
    background: var(--blue-dark);
    color: var(--white);
    padding: 15px 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.auth-img img {
    width: 60%;
    border-radius: 30px;
}

.auth-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.check-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.check-list li i {
    color: #4ade80;
    margin-right: 15px;
}

/* Footer */
.cta-blue {
    background: var(--blue-primary);
    color: var(--white);
    padding: 80px 0;
}

.main-footer {
    background: #171717;
    /* SiyahÄ±msÄ± koyu gri (daha hafif ve ÅŸÄ±k) */
    color: #e2e8f0;
    /* Ã‡ok daha parlak bir beyaz/gri */
    padding: 60px 0 20px;
    border-top: 4px solid var(--blue-primary);
    /* Ãœste Ã§ok ÅŸÄ±k bir logo yeÅŸili Ã§izgi attÄ±k */
}

.footer-bottom p {
    color: #94a3b8 !important;
    /* SatÄ±r aralarÄ±ndaki ezici inline renkleri kÄ±rmak iÃ§in !important kullandÄ±k */
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo-img {
    display: block;
    width: min(260px, 100%);
    height: auto;
    aspect-ratio: 1040 / 310;
    object-fit: contain;
    margin: 0 0 18px;
    border-radius: 4px;
}

.footer-logo-only {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.footer-logo-only .footer-logo-img {
    width: min(320px, 100%);
    margin: 0;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--white);
}

.social-icons a {
    color: var(--white);
    margin-right: 15px;
    font-size: 1.2rem;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        height: 72px;
    }

    .navbar {
        flex-direction: row;
        height: 72px;
        padding: 0 15px;
        position: relative;
    }

    .navbar .logo {
        height: 72px !important;
        gap: 8px !important;
        max-width: calc(100% - 52px);
    }

    .navbar .logo img {
        max-height: 52px !important;
        /* Mobil için logo boyutu küçültüldü */
        margin: 0 !important;
    }

    .navbar-logo-separator {
        height: 35px;
        margin: 0 8px;
    }

    .hamburger {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 500;
        /* İkon her şeyin üstünde kalmalı */
    }

    .nav-links {
        display: flex;
        width: 100%;
        flex-direction: column;
        text-align: center;
        gap: 0;

        /* Modern Glassmorphism (Cama benzer yari saydam tasarim) */
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-radius: 0 0 20px 20px;

        position: absolute;
        top: 72px;
        left: 0;
        padding: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        /* menüye gölge */

        /* Animasyon için hazırlık */
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        border-top: 0px solid transparent;
        z-index: 499;
    }

    .nav-links.active {
        max-height: 260px;
        /* tahmini menü yüksekliği, geçiş animasyonu için */
        padding: 4px 0 6px 0;
        visibility: visible;
        opacity: 1;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        display: flex;
        /* Display zaten elementte flex, flex-direction ile birleşir, sadece görünürlüğü değiştiriyoruz */
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 6px 20px;
        font-size: 0.92rem;
        line-height: 1.18;
    }

    .hero {
        height: auto;
        min-height: 480px;
        padding: 60px 0;
    }

    .hero h1 {
        font-size: clamp(1.9rem, 9vw, 2.4rem);
        overflow-wrap: anywhere;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .navbar .logo .nhg-navbar-logo {
        max-width: 175px;
    }

    .grid-4,
    .glass-grid,
    .product-grid,
    .fly-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }

    .page-header {
        padding: 56px 15px !important;
    }

    .page-header h1,
    .logo-hero-bg h1 {
        font-size: clamp(1.9rem, 9vw, 2.5rem) !important;
        line-height: 1.15 !important;
        overflow-wrap: anywhere;
    }

    .auth-img img {
        width: min(72%, 240px);
        display: block;
        margin: 0 auto 18px;
        border-radius: 18px;
    }

    .authorized-dark {
        padding: 34px 0;
    }

    .authorized-dark .grid-2 {
        gap: 22px;
    }

    .auth-content h2 {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 12px;
    }

    .auth-content p {
        font-size: 0.95rem;
        line-height: 1.55;
        margin-bottom: 10px;
    }

    .check-list li {
        margin-bottom: 10px;
        font-size: 0.95rem;
        line-height: 1.35;
    }

    .check-list li i {
        margin-right: 10px;
    }
}

/* =========================================
   YENÄ° VE HATASIZ SAÄA YAPIÅIK MENÃœ TASARIMI 
   ========================================= */
.nhg-side-menu {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 99999;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
}

.nhg-side-menu:not(.open) {
    width: 28px;
}

.nhg-menu-toggle {
    width: 28px;
    /* Thinner when hidden */
    height: 52px;
    background-color: #000000;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    /* slightly smaller icon */
    cursor: pointer;
    border-radius: 15px 0 0 15px;
    position: relative;
    z-index: 2;
    transition: width 0.3s ease, font-size 0.3s ease, border-radius 0.3s ease;
}

.nhg-side-menu.open .nhg-menu-toggle {
    width: 60px;
    /* Full width when open */
    font-size: 24px;
    border-radius: 15px 0 0 0;
}

.nhg-menu-buttons {
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease;
    transform-origin: right center;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.nhg-side-menu.open .nhg-menu-buttons {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nhg-side-menu:not(.open) .nhg-menu-buttons {
    display: none;
}

.nhg-menu-btn {
    width: 60px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 26px;
    text-decoration: none;
    transition: filter 0.3s ease;
}

@media (max-width: 768px) {
    .nhg-side-menu {
        transform: translateY(-50%) scale(0.85);
        /* Mobilde ikonları ve barı orantılı küçülttük */
        transform-origin: right center;
    }
}

.nhg-menu-btn:hover {
    filter: brightness(0.9);
}

.nhg-wa {
    background-color: #2cb79a;
}

.nhg-phone {
    background-color: #2bd36f;
}

.nhg-ig {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-radius: 0 0 0 15px;
}

/* =========================================
   PROJELER VE HİZMETLER SAYFASI ÖZEL TASARIMI
   ========================================= */
.page-header {
    background: var(--blue-primary);
    color: var(--white);
    padding: 40px 15px;
    /* Mobilde çok yüksek olmasını engellemek için dikey padding düşürüldü */
    margin-bottom: 30px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
    color: #9ca3af;
}

.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 50px;
}

.filter-btn {
    background: #f3f4f6;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--blue-primary);
    color: var(--white);
}

.project-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr));
    gap: 30px;
}

.project-card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
}

.project-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.p-img {
    overflow: hidden;
    /* TaÅŸmayÄ± engelle ki hover da resmin bÃ¼yÃ¼mesi temiz olsun */
}

.p-img img {
    width: 100%;
    height: 300px;
    /* Resimler geniÅŸ ve detaylÄ± gÃ¶rÃ¼nsÃ¼n */
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.p-img:hover img {
    transform: scale(1.08);
    /* HafifÃ§e bÃ¼yÃ¼me animasyonu */
}

/* Lightbox Arka Plan ve DÃ¼zenekler */
.nhg-lightbox {
    position: fixed;
    z-index: 100000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Siyah yarÄ± saydam */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(5px);
}

.nhg-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.nhg-lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.6);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nhg-lightbox.active img {
    transform: scale(1);
    /* Resim zÄ±plama efektiyle gelir */
}

.nhg-lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 100001;
}

.nhg-lightbox-close:hover {
    color: var(--blue-primary);
}

.p-info {
    padding: 15px;
    /* Ã‡erÃ§eve ve beyazlÄ±k inceltildi */
}

.p-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--blue-dark);
}

.p-info p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.cta-blue-center {
    background: var(--blue-primary);
    color: var(--white);
    padding: 50px 0;
    margin-top: 80px;
    text-align: center;
}

.cta-blue-center h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-blue-center p {
    margin-bottom: 40px;
    font-size: 1.2rem;
    opacity: 0.9;
}

/* =========================================
   INFINIT PROJECTS SLIDER (Hizmet sayfaları kayan resimler)
   ========================================= */
.infinite-projects-section {
    position: relative;
    width: 100%;
    height: 260px;
    /* Şeritin yüksekliği küçültüldü (350'den 260'a) */
    overflow: hidden;
    background: #111;
    margin-top: 50px;
}

.infinite-track {
    display: flex;
    height: 100%;
    width: max-content;
}

.infinite-track img {
    width: 220px;
    /* Fotoğraflar biraz daha küçüldü (300'den 220'ye) */
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.infinite-track:hover img {
    opacity: 0.8;
}

.infinite-overlay-content {
    position: absolute;
    top: 50%;
    left: 10%;
    /* Kutuyu sayfanın sol kısmına aldık (eski: 50%) */
    transform: translateY(-50%);
    /* Sadece dikeyde ortaladık */
    background: rgba(14, 68, 70, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 25px 35px;
    /* Biraz daha daralttık */
    border-radius: 12px;
    text-align: left;
    /* Yazıları da sola yasladık */
    color: #fff;
    z-index: 2;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    width: 90%;
    max-width: 420px;
    /* Kutunun maksimum genişliğini küçülttük (eski: 550px) */
}

.infinite-overlay-content h2 {
    font-size: 1.6rem;
    /* Başlık en şık hizaya küçültüldü */
    margin-bottom: 8px;
}

.infinite-overlay-content p {
    font-size: 1rem;
    /* Açıklama yazısı küçültüldü */
    color: #e2e8f0;
    margin-bottom: 20px;
}

/* Sayfalara özel animasyon keyframeleri */
@keyframes scrollProjectsCam {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-220px * 14));
    }
}

@keyframes scrollProjectsPvc {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-220px * 11));
    }
}

@keyframes scrollProjectsDus {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-220px * 8));
    }
}

@keyframes scrollProjectsSineklik {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-220px * 5));
    }
}

/* =========================================
   GENİŞ KAPSAMLI MOBİL UYUM (RESPONSIVE)
   ========================================= */
@media (max-width: 992px) {
    .page-header-container {
        flex-direction: column !important;
        text-align: center !important;
    }

    .page-header-text {
        text-align: center !important;
        margin-bottom: 20px;
    }

    .page-header-text p {
        margin: 10px auto !important;
    }

    .infinite-overlay-content {
        left: 50%;
        transform: translate(-50%, -50%);
        width: 75%;
        text-align: center;
        padding: 15px;
    }

    .infinite-overlay-content .btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .infinite-track img {
        width: 180px;
    }
}

@media (max-width: 768px) {

    /* Genel Container */
    .container {
        padding: 0 15px;
    }

    /* Top Bar Gizleme / Daraltma - Telefon ve Epostaları düzeltelim */
    .top-bar .contact-info-right {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        width: 100%;
        font-size: 0.82rem;
        line-height: 1.2;
        text-align: left;
    }

    .top-bar .contact-info-right a:first-child {
        display: none;
    }

    .top-bar .contact-info-right span {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        margin-left: 0;
        /* Mobilde soldaki gereksiz boşluk silindi */
    }

    /* Page Header Fontlar */
    .page-header h1 {
        font-size: 2.2rem !important;
    }

    .page-header p {
        font-size: 1rem !important;
    }

    /* Hizmet Bölümleri Mobil Aralıkları */
    .services,
    .features {
        padding: 50px 0;
    }

    .features .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 22px 12px;
    }

    .feature-item {
        min-width: 0;
    }

    .icon-circle {
        width: 54px;
        height: 54px;
        margin-bottom: 12px;
        font-size: 1.12rem;
    }

    .feature-item h3 {
        margin-bottom: 6px;
        font-size: 1rem;
        line-height: 1.2;
    }

    .feature-item p {
        font-size: 0.82rem;
        line-height: 1.35;
        max-width: 150px;
        margin: 0 auto;
    }

    /* Contact & Form */
    #iletisim-formu,
    .cta-blue-center {
        padding: 40px 15px !important;
        margin-top: 30px !important;
    }

    #iletisim-formu h2,
    .cta-blue-center h2 {
        font-size: 1.8rem;
    }

    #iletisim-formu p,
    .cta-blue-center p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .btn {
        width: 100%;
        max-width: 100%;
        /* Taşmaları engelle */
    }

    .center-btn .btn {
        width: 100%;
    }

    /* Footer Hizalama ve Tap Targets */
    .main-footer {
        padding: 34px 0 16px;
    }

    .footer-grid {
        gap: 24px;
        margin-bottom: 24px;
    }

    .footer-col {
        text-align: center;
    }

    .footer-logo-img {
        width: min(210px, 78%);
        margin: 0 auto 12px;
    }

    .footer-col h3 {
        margin-bottom: 10px;
        font-size: 1rem;
    }

    .footer-col p {
        font-size: 0.9rem;
        line-height: 1.45;
        max-width: 310px;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-col ul li {
        margin-bottom: 8px;
        /* Tıklanabilir alanları artırmak için boşluklar eklendi */
    }

    .footer-col ul li a {
        display: inline-block;
        padding: 3px 6px;
        font-size: 0.9rem;
        line-height: 1.35;
    }

    .social-icons a {
        margin-right: 0;
        font-size: 1rem;
    }

    .footer-bottom {
        padding-top: 14px;
        font-size: 0.82rem;
    }

    /* Hakkımızda Logo Küçültme */
    .page-header-logo img {
        width: 150px !important;
    }

    /* Projeler Grid Sistemini Tek Sütuna Alman */
    .project-grid-layout {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .container {
        width: 100% !important;
        max-width: 100vw !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .top-bar .container {
        padding-left: 8px;
        padding-right: 8px;
    }

    .top-bar .contact-info-right {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden;
        gap: 10px;
        text-align: left;
        font-size: 0.82rem;
    }

    .top-bar .contact-info-right a:first-child {
        display: none !important;
    }

    .top-bar .contact-info-right a:nth-of-type(2),
    .top-bar .contact-info-right a:nth-of-type(3) {
        display: block !important;
        width: auto !important;
    }

    .top-bar .contact-info-right span {
        margin-left: 0;
        white-space: nowrap;
    }

    .hero-content {
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero h1,
    .page-header h1,
    .logo-hero-bg h1 {
        font-size: clamp(1.35rem, 5vw, 1.75rem) !important;
        line-height: 1.18 !important;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .hero p,
    .page-header p {
        font-size: 0.92rem !important;
        line-height: 1.45 !important;
        max-width: 100%;
    }

    .filter-container {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px;
        width: 100%;
        overflow: hidden;
        padding-left: 0;
        padding-right: 0;
    }

    .filter-btn {
        width: 100%;
        min-width: 0;
        padding: 10px 8px;
        font-size: 0.92rem;
        white-space: normal;
    }

    section,
    header,
    footer,
    .top-bar,
    .project-card,
    .service-card {
        max-width: 100vw;
    }
}

@media (max-width: 480px) {
    .top-bar {
        font-size: 0.78rem;
        padding: 8px 0;
    }

    .top-bar .container {
        padding: 0 12px;
    }

    .top-bar .contact-info-right {
        gap: 8px;
        font-size: 0.74rem;
    }

    .navbar {
        padding: 0 10px;
    }

    .navbar .logo img {
        max-height: 46px !important;
    }

    .navbar .logo .nhg-navbar-logo {
        max-width: 158px;
    }

    .navbar-logo-separator {
        height: 30px;
        margin: 0 4px;
    }

    .nav-links.active {
        max-height: 350px;
        padding: 10px 0;
        background: var(--blue-primary);
        width: 100vw;
        left: -10px; /* Container padding telafisi */
        position: relative;
        z-index: 1000;
    }

    .nav-links a {
        padding: 7px 16px;
        font-size: 0.96rem;
    }

    .features {
        padding: 36px 0;
    }

    .features .grid-4 {
        gap: 18px 8px;
    }

    .icon-circle {
        width: 48px;
        height: 48px;
        margin-bottom: 10px;
        font-size: 1rem;
    }

    .feature-item h3 {
        font-size: 0.92rem;
    }

    .feature-item p {
        font-size: 0.74rem;
        line-height: 1.3;
        max-width: 132px;
    }

    .auth-img img {
        width: min(68%, 205px);
        margin-bottom: 14px;
        border-radius: 16px;
    }

    .auth-content h2 {
        font-size: 1.5rem;
    }

    .auth-content p,
    .check-list li {
        font-size: 0.88rem;
    }

    .main-footer {
        padding: 28px 0 14px;
    }

    .footer-grid {
        gap: 18px;
        margin-bottom: 18px;
    }

    .footer-logo-img {
        width: min(185px, 74%);
        margin-bottom: 10px;
    }

    .footer-col h3 {
        font-size: 0.92rem;
        margin-bottom: 8px;
    }

    .footer-col p,
    .footer-col ul li a {
        font-size: 0.82rem;
    }

    .footer-col ul li {
        margin-bottom: 6px;
    }

    .page-header h1,
    .logo-hero-bg h1 {
        font-size: clamp(1.35rem, 6vw, 1.7rem) !important;
    }

    .hero p {
        font-size: 0.95rem !important;
    }

    .section-header h2,
    .cta-blue-center h2,
    #iletisim-formu h2 {
        font-size: 1.8rem !important;
    }

    .infinite-overlay-content h2 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

    .infinite-overlay-content p {
        font-size: 0.75rem;
        margin-bottom: 12px;
    }

    .glass-features li {
        font-size: 0.85rem;
    }

    .glass-content h3 {
        font-size: 1.2rem;
    }

    .nhg-side-menu {
        top: auto;
        bottom: 18px;
        right: 0;
        transform: scale(0.75);
        transform-origin: right bottom;
    }

    .p-img img {
        height: 230px;
    }
}
@media (max-width: 480px) {
    .page-header-text {
        min-width: 0 !important;
        width: 100% !important;
    }
}

/* Final mobile polish pass */
@media (max-width: 768px) {
    header,
    .navbar,
    .navbar .logo {
        height: 66px !important;
    }

    .navbar {
        padding: 0 12px !important;
    }

    .hamburger {
        right: 14px !important;
        font-size: 1.35rem !important;
    }

    .nav-links {
        top: 66px !important;
        border-radius: 0 0 14px 14px !important;
        background: rgba(255, 255, 255, 0.96) !important;
        gap: 0 !important;
    }

    .nav-links.active {
        max-height: 260px !important;
        padding: 3px 0 5px !important;
    }

    .nav-links a,
    .nav-links .nav-contact-link {
        display: block !important;
        padding: 5px 14px !important;
        font-size: 0.84rem !important;
        line-height: 1.15 !important;
        background: transparent !important;
        color: var(--text-dark) !important;
        border-radius: 0 !important;
    }

    .nav-links a.active,
    .nav-links a:hover {
        color: var(--blue-primary) !important;
    }

    .hero {
        min-height: 390px !important;
        padding: 42px 0 !important;
    }

    .page-header,
    .logo-hero-bg,
    section[style*="padding: 160px"],
    section[style*="padding: 150px"],
    section[style*="padding: 140px"] {
        min-height: 0 !important;
        padding: 46px 0 !important;
        margin-bottom: 22px !important;
    }

    section[style*="padding: 100px"],
    section[style*="padding: 90px"],
    section[style*="padding: 80px"] {
        padding: 46px 0 !important;
    }

    .section-header {
        margin-bottom: 26px !important;
    }

    .section-header h2,
    .modern-title,
    .category-title,
    .cta-blue h2,
    .cta-blue-center h2,
    #iletisim-formu h2 {
        font-size: clamp(1.35rem, 6vw, 1.8rem) !important;
        line-height: 1.18 !important;
        margin-bottom: 10px !important;
    }

    .section-header p,
    .cta-blue p,
    .cta-blue-center p,
    #iletisim-formu p {
        font-size: 0.92rem !important;
        line-height: 1.45 !important;
    }

    .service-card img,
    .p-img img,
    .glass-img-wrapper img,
    .auth-img img,
    .anim-img {
        max-height: 230px !important;
        object-fit: cover !important;
    }

    .service-card,
    .project-card,
    .glass-card,
    #iletisim .service-card {
        border-radius: 8px !important;
    }

    .card-body,
    .p-info,
    .glass-content,
    #iletisim .service-card {
        padding: 18px 14px !important;
    }

    .card-body h3,
    .p-info h3,
    .glass-content h3,
    #iletisim .service-card h3 {
        font-size: 1.05rem !important;
        line-height: 1.25 !important;
        margin-bottom: 8px !important;
    }

    .card-body p,
    .p-info p,
    .glass-content p,
    #iletisim .service-card p {
        font-size: 0.88rem !important;
        line-height: 1.42 !important;
    }

    #iletisim .service-card i {
        font-size: 2rem !important;
        margin-bottom: 14px !important;
    }

    .btn,
    .btn-elegant,
    .nav-contact-link {
        min-height: 40px;
        padding: 10px 18px !important;
        font-size: 0.92rem !important;
    }

    .infinite-projects-section {
        height: 190px !important;
    }

    .top-bar .contact-info-right {
        font-size: 0.72rem !important;
        gap: 6px !important;
    }

    .top-bar .contact-info-right a:nth-of-type(2) {
        flex: 0 0 auto;
    }

    .top-bar .contact-info-right a:nth-of-type(3) {
        flex: 1 1 auto;
        min-width: 0;
        text-align: right;
    }

    .top-bar .contact-info-right a:nth-of-type(3) span {
        max-width: 48vw;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero-content,
    .page-header .container,
    .logo-hero-bg .container {
        max-width: calc(100vw - 28px) !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .hero h1,
    .page-header h1,
    .logo-hero-bg h1 {
        max-width: min(520px, calc(100vw - 34px)) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        font-size: clamp(1.2rem, 5vw, 1.65rem) !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }

    .hero p,
    .page-header p,
    .logo-hero-bg p {
        max-width: min(520px, calc(100vw - 34px)) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        overflow-wrap: anywhere !important;
    }

    .feature-item {
        overflow: hidden;
    }

    .feature-item h3,
    .feature-item p,
    .card-body p,
    .p-info p,
    .glass-content p,
    #iletisim .service-card p,
    .footer-col p {
        overflow-wrap: anywhere !important;
        word-break: normal !important;
    }
}

@media (max-width: 480px) {
    header,
    .navbar,
    .navbar .logo {
        height: 62px !important;
    }

    .navbar .logo .nhg-navbar-logo {
        max-width: 148px !important;
    }

    .navbar .logo img {
        max-height: 42px !important;
    }

    .nav-links {
        top: 62px !important;
    }

    .nav-links.active {
        max-height: 220px !important;
        padding: 2px 0 4px !important;
    }

    .nav-links a,
    .nav-links .nav-contact-link {
        padding: 4px 12px !important;
        font-size: 0.78rem !important;
    }

    .hero {
        min-height: 340px !important;
        padding: 34px 0 !important;
    }

    .hero h1,
    .page-header h1,
    .logo-hero-bg h1 {
        font-size: clamp(1.25rem, 6vw, 1.55rem) !important;
    }

    .hero p,
    .page-header p {
        font-size: 0.84rem !important;
    }

    .page-header,
    .logo-hero-bg,
    section[style*="padding: 160px"],
    section[style*="padding: 150px"],
    section[style*="padding: 140px"] {
        padding: 36px 0 !important;
    }

    section[style*="padding: 100px"],
    section[style*="padding: 90px"],
    section[style*="padding: 80px"] {
        padding: 36px 0 !important;
    }

    .service-card img,
    .p-img img,
    .glass-img-wrapper img,
    .auth-img img,
    .anim-img {
        max-height: 190px !important;
    }

    #iletisim .grid-4 {
        gap: 14px !important;
    }

    .infinite-projects-section {
        height: 160px !important;
    }
}

@media (max-width: 480px) {
    .top-bar .contact-info-right {
        font-size: 0.68rem !important;
        gap: 6px !important;
    }

    .top-bar .contact-info-right a:nth-of-type(2) {
        flex: 0 0 auto;
    }

    .top-bar .contact-info-right a:nth-of-type(3) {
        flex: 1 1 auto;
        min-width: 0;
        text-align: right;
    }

    .top-bar .contact-info-right a:nth-of-type(3) span {
        max-width: 48vw;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero-content,
    .page-header .container,
    .logo-hero-bg .container {
        max-width: calc(100vw - 28px) !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .hero h1,
    .page-header h1,
    .logo-hero-bg h1 {
        max-width: 330px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        font-size: clamp(1.12rem, 5.5vw, 1.38rem) !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }

    .hero p,
    .page-header p,
    .logo-hero-bg p {
        max-width: 330px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        font-size: 0.82rem !important;
        overflow-wrap: anywhere !important;
    }

    .features .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px 6px !important;
    }

    .feature-item {
        overflow: hidden;
    }

    .feature-item h3 {
        font-size: 0.84rem !important;
        overflow-wrap: anywhere;
    }

    .feature-item p {
        max-width: 118px !important;
        font-size: 0.68rem !important;
        overflow-wrap: anywhere;
    }

    .card-body p,
    .p-info p,
    .glass-content p,
    #iletisim .service-card p,
    .footer-col p {
        overflow-wrap: anywhere !important;
        word-break: normal !important;
    }

    #iletisim .service-card {
        padding: 16px 12px !important;
    }
}

@media (max-width: 768px) {
    .contact-methods-section {
        padding: 28px 0 !important;
    }

    .contact-methods-section .grid-4 {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin-bottom: 22px !important;
    }

    .contact-methods-section .service-card {
        padding: 14px 12px !important;
        min-height: 0 !important;
        height: auto !important;
    }

    .contact-methods-section .service-card i {
        font-size: 1.35rem !important;
        margin-bottom: 8px !important;
    }

    .contact-methods-section .service-card h3 {
        font-size: 0.92rem !important;
        margin-bottom: 5px !important;
        line-height: 1.2 !important;
    }

    .contact-methods-section .service-card p {
        font-size: 0.8rem !important;
        line-height: 1.35 !important;
        margin: 0 !important;
    }

    .contact-methods-section .service-card p span {
        line-height: 1.45 !important;
    }

    .contact-methods-section .btn {
        min-height: 0 !important;
        padding: 7px 12px !important;
        font-size: 0.78rem !important;
    }

    .contact-methods-section iframe {
        height: 260px !important;
    }

    .contact-methods-section div[style*="height: 500px"] {
        height: 260px !important;
        border-radius: 8px !important;
    }
}

@media (max-width: 480px) {
    .contact-methods-section {
        padding: 22px 0 !important;
    }

    .contact-methods-section .grid-4 {
        gap: 8px !important;
        margin-bottom: 18px !important;
    }

    .contact-methods-section .service-card {
        padding: 11px 10px !important;
    }

    .contact-methods-section .service-card i {
        font-size: 1.15rem !important;
        margin-bottom: 6px !important;
    }

    .contact-methods-section .service-card h3 {
        font-size: 0.84rem !important;
    }

    .contact-methods-section .service-card p {
        font-size: 0.74rem !important;
    }
}

/* Mobil için Hero Kısmı Özelleştirmeleri */
@media (max-width: 768px) {
    .hero {
        height: 55vh !important;
        min-height: 300px !important;
    }

    .hero h1 {
        font-size: 1.05rem !important;
        margin-bottom: 6px !important;
        line-height: 1.4 !important;
        padding: 0 10px;
    }

    .hero p {
        font-size: 0.75rem !important;
        margin-bottom: 12px !important;
        padding: 0 15px;
    }
    
    .hero .btn {
        padding: 8px 16px !important;
        font-size: 0.75rem !important;
        min-height: 0 !important;
    }
    
    .hero-buttons {
        gap: 8px !important;
    }
}

/* Telefonlar (480px) için %100 Uyum Düzeltmeleri */
@media (max-width: 480px) {
    .features .grid-4,
    .services .grid-4,
    .grid-4,
    .grid-2,
    .authorized-dark .grid-2 {
        grid-template-columns: 1fr !important;
    }
    
    .footer-col ul li a {
        padding: 10px 6px !important; /* Daha iyi dokunma hedefi (Tap Target) */
    }
    
    html, body {
        overflow-x: hidden !important; /* Yatay taşmayı engeller */
        width: 100vw !important;
        max-width: 100vw !important;
    }
}
