/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==========================================
   MOBILE MENU SUBMENU STYLES
   ========================================== */

/* Mobile submenu styling */
.mobile-submenu {
    border-left: 2px solid #e9ecef;
    margin-left: 0.5rem;
    padding-left: 1rem !important;
}

.mobile-submenu li {
    margin-bottom: 0.25rem;
}

.mobile-submenu .nav-link {
    color: #6c757d !important;
    font-size: 0.9rem;
    padding: 0.4rem 0 !important;
    transition: color 0.2s;
}

.mobile-submenu .nav-link:hover,
.mobile-submenu .nav-link:focus {
    color: #0d6efd !important;
}

.mobile-submenu .nav-link i {
    font-size: 0.8rem;
}

/* ==========================================
   PROFESSIONAL MOBILE/DESKTOP IMAGE SWITCHING
   ========================================== */

/* Hero wrapper - relative positioning for absolute images */
.hero-bg-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Service Card Image Wrapper (for index.html services section) */
.service-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.service-image-wrapper .service-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center;
}

/* Desktop image visible by default */
.service-image-wrapper .service-image.service-image-desktop {
    display: block !important;
}

/* Mobile image hidden by default */
.service-image-wrapper .service-image.service-image-mobile {
    display: none !important;
}

/* Mobile: swap images */
@media (max-width: 991.98px) {
    .service-image-wrapper .service-image.service-image-desktop {
        display: none !important;
    }
    
    .service-image-wrapper .service-image.service-image-mobile {
        display: block !important;
    }
    
    .service-image-wrapper {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .service-image-wrapper {
        height: 180px;
    }
}

/* Both images fill the wrapper */
.hero-bg-wrapper .hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Desktop image - visible by default */
.hero-bg-wrapper .hero-image.hero-image-desktop {
    display: block !important;
}

/* Mobile image - hidden by default */
.hero-bg-wrapper .hero-image.hero-image-mobile {
    display: none !important;
}

/* Mobile breakpoint: swap images */
@media (max-width: 991.98px) {
    .hero-bg-wrapper .hero-image.hero-image-desktop {
        display: none !important;
    }
    
    .hero-bg-wrapper .hero-image.hero-image-mobile {
        display: block !important;
    }
}

/* ==========================================
   YENI HEADER TASARIMI - BASIT VE CALISAN
   ========================================== */

/* Desktop Header */
.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.header-logo img {
    height: 50px;
    width: auto;
}

.desktop-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.desktop-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
}

.desktop-menu a:hover {
    color: #0d6efd;
}

.desktop-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #0d6efd;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
}

.desktop-phone:hover {
    background: #0b5ed7;
    color: white;
}

/* Hamburger Button - Sadece mobil */
.menu-btn {
    display: none;
}

/* Mobil Menu - Alttan kayan panel */
@media (max-width: 991.98px) {
    .desktop-menu,
    .desktop-phone {
        display: none !important;
    }
    
    .menu-btn {
        display: flex;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        cursor: pointer;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 6px;
        padding: 0;
    }
    
    .menu-btn span {
        display: block;
        width: 25px;
        height: 3px;
        background: #333;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Mobil Panel - KAYDIRMA YOK */
    .mobile-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -5px 30px rgba(0,0,0,0.2);
        z-index: 9999;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        max-height: 70vh;
        overflow: hidden;
    }
    
    .mobile-panel.active {
        transform: translateY(0);
    }
    
    .mobile-panel-content {
        padding: 30px 25px 40px;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        max-height: 70vh;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .mobile-panel-content::-webkit-scrollbar {
        display: none;
    }
    
    .mobile-panel-content a {
        color: #333;
        text-decoration: none;
        font-size: 18px;
        font-weight: 500;
        padding: 15px 0;
        border-bottom: 1px solid #eee;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .mobile-panel-content a::after {
        content: '→';
        color: #0d6efd;
    }
    
    .mobile-panel-content a:last-child::after {
        content: none;
    }
    
    .mobile-phone-btn {
        margin-top: 20px;
        background: #0d6efd;
        color: white !important;
        border-radius: 12px;
        justify-content: center !important;
        gap: 10px;
        border: none !important;
    }
    
    .mobile-phone-btn i {
        font-size: 20px;
    }
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Ensure proper stacking context */
    isolation: isolate;
    /* Ensure body content stays below header */
    z-index: 1;
    /* Remove any default margins that might cause spacing */
    margin: 0;
    padding: 0;
}

/* PREVENT HORIZONTAL SCROLL - ULTIMATE FIX */
/* CSS Reset for spacing issues */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    /* Remove any default margins */
    margin: 0;
    padding: 0;
}

/* Force all containers to respect boundaries */
.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
    max-width: 100%;
    overflow-x: hidden;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

/* Ensure rows dont overflow */
.row {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    overflow-x: hidden;
}

/* Column fixes */
[class*="col-"] {
    padding-left: 12px;
    padding-right: 12px;
    max-width: 100%;
    overflow-x: hidden;
}

/* Universal image overflow prevention */
img {
    max-width: 100%;
    height: auto;
    display: block;
    box-sizing: border-box;
}

/* Prevent any element from causing horizontal overflow */
* {
    box-sizing: border-box;
}

/* Force overflow hidden on problematic elements */
.hero-section,
.section,
.card,
.card-body,
.card-img-top,
.img-fluid,
.rounded {
    overflow: hidden;
    max-width: 100%;
}

/* Additional image overflow prevention */
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
    max-width: 100%;
    overflow-x: hidden;
}

/* Ensure all image containers respect boundaries */
.card,
.card-body,
.card-img-top,
.img-fluid,
.rounded {
    max-width: 100%;
    overflow: hidden;
}

/* Fix for specific problematic elements */
.hero-image,
.product-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
}

/* Prevent any element from causing overflow */
* {
    box-sizing: border-box;
}

/* Specific fix for Bootstrap card images - COMPACT */
.card-img-top {
    width: 100%;
    height: auto; /* Changed from max-height to auto */
    object-fit: contain; /* Shows full image instead of cropping */
    object-position: center;
    margin: 0 auto;
    aspect-ratio: 4/3; /* Maintain consistent aspect ratio */
}

/* Responsive heights for different screen sizes */
@media (max-width: 1200px) {
    .card-img-top {
        aspect-ratio: 4/3; /* Maintain ratio */
    }
}

@media (max-width: 992px) {
    .card-img-top {
        aspect-ratio: 4/3; /* Maintain ratio */
    }
}

@media (max-width: 768px) {
    .card-img-top {
        aspect-ratio: 4/3; /* Maintain ratio */
    }
}

@media (max-width: 576px) {
    .card-img-top {
        aspect-ratio: 4/3; /* Maintain ratio */
    }
}

/* Team member images specific fix */
.about-team-section .card-img-top {
    height: 250px;
    object-fit: cover;
}

/* Product page specific fixes */
.products-section .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Services page image fixes */
.service-detail-image {
    max-width: 100%;
    height: auto; /* Changed to auto for full image display */
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    object-fit: contain; /* Shows full image */
}

/* Team member cards hover effects */
.team-card-hover {
    transition: all 0.3s ease;
    overflow: hidden;
}

.team-card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}

.team-member-image {
    height: 300px;
    width: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.team-card-hover:hover .team-member-image {
    transform: scale(1.05);
}

.team-overlay {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,123,255,0.5));
    transition: all 0.3s ease;
}

.team-card-hover:hover .team-overlay {
    opacity: 1 !important;
}

/* Two-column image grid for pages with multiple images */
.image-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.image-grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.image-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.image-grid-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.image-grid-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px 15px 15px;
    text-align: center;
}

/* Prevent any content from overflowing */
.overflow-hidden {
    overflow: hidden;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive adjustments for team section */
@media (max-width: 991px) {
    .team-member-image {
        height: 250px;
    }
    
    .image-grid-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    /* General overflow prevention for all pages */
    .container, .container-fluid {
        overflow-x: hidden;
        max-width: 100%;
    }
    
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .col-* {
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (max-width: 767px) {
    .team-member-image {
        height: 200px;
    }
    
    .image-grid-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .image-grid-item img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .team-member-image {
        height: 180px;
    }
    
    .image-grid-item img {
        height: 150px;
    }
}

/* Better touch targets for mobile */
a, button {
    min-height: 44px;
    min-width: 44px;
}

/* Responsive images - FIXED FOR OVERFLOW ISSUES */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Fix for images overflowing their containers */
.card-img-top,
.product-image img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    width: 100%;
}

/* Prevent image overflow in all containers */
.container img,
.row img,
.col-* img,
.card img {
    max-width: 100%;
    height: auto;
}

/* Specific fix for product images */
.product-card .card-img-top {
    height: auto; /* Changed from fixed height to auto */
    object-fit: contain; /* Shows full image */
    width: 100%;
    aspect-ratio: 4/3; /* Maintain consistent ratio */
}

/* Team member images fix */
.team-card .card-img-top {
    height: auto; /* Changed from fixed height to auto */
    object-fit: contain; /* Shows full image */
    width: 100%;
    aspect-ratio: 3/4; /* Maintain consistent ratio */
}

/* About page team images */
.about-team-img {
    max-height: none; /* Removed height restriction */
    width: 100%;
    height: auto;
    object-fit: contain; /* Shows full image */
}

/* Two-column image layout for pages with multiple images */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.image-grid img {
    width: 100%;
    height: auto; /* Changed from fixed max-height to auto */
    max-height: none; /* Removed restriction */
    object-fit: contain; /* Shows full image */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Prevent any image from causing horizontal scroll */
* {
    box-sizing: border-box;
}

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

/* ========================================
   PROFESSIONAL ANIMATIONS & TRANSITIONS
   ======================================== */

/* Smooth fade-in animation */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

/* Slide in from left */
@keyframes slideInLeft {
    from { 
        opacity: 0; 
        transform: translateX(-30px);
    }
    to { 
        opacity: 1; 
        transform: translateX(0);
    }
}

/* Slide in from right */
@keyframes slideInRight {
    from { 
        opacity: 0; 
        transform: translateX(30px);
    }
    to { 
        opacity: 1; 
        transform: translateX(0);
    }
}

/* Scale up animation */
@keyframes scaleUp {
    from { 
        opacity: 0; 
        transform: scale(0.9);
    }
    to { 
        opacity: 1; 
        transform: scale(1);
    }
}

/* Bounce animation for WhatsApp */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Pulse animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(13, 110, 253, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

/* Apply animations to elements - DISABLED for instant loading */
.card {
    transition: none;
    animation: none;
}

.card:hover {
    transform: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}

/* Button hover effects */
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Image hover zoom effect */
.card-img-top {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* Hero section animation - DISABLED */
.hero-content {
    animation: none;
}

.hero-buttons {
    animation: none;
}

/* Section titles - DISABLED */
.section-title {
    position: relative;
    display: inline-block;
    animation: none;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
img[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

img[loading="lazy"].loaded {
    background: none;
    animation: none;
}

/* Professional hover overlay for cards - DISABLED */
.card::before {
    content: none;
}

.card:hover::before {
    opacity: 0;
}

/* Enhanced focus states */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid rgba(13, 110, 253, 0.5);
    outline-offset: 2px;
}

/* Ripple effect - DISABLED */
.btn::after {
    content: none;
}

.hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    height: 70vh;
    max-height: 800px;
    overflow: hidden;
    z-index: 1;
}

/* Desktop: hero-image behaves normally */
.hero-section .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.hero-section .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}


.hero-section .hero-content {
    text-align: center;
    color: #fff;
    padding: 60px 30px;
    max-width: 1000px;
    width: 100%;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 900 !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    color: #fff;
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
    font-size: 1.5rem;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.7), 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 2.5rem;
    opacity: 1;
    font-weight: 600;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-section .btn {
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-section .btn-light {
    background: #fff;
    color: #0056b3;
    border: none;
}

.hero-section .btn-light:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-section .btn-outline-light {
    border: 2px solid #fff;
    background: transparent;
}

.hero-section .btn-outline-light:hover {
    background: #fff;
    color: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Tablet */
@media (max-width: 991px) {
    .hero-section h1 {
        font-size: 2.5rem;
        font-weight: 900 !important;
        text-shadow: 0 3px 15px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 0, 0, 0.4);
        -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.3);
    }
    
    .hero-section .lead {
        font-size: 1.2rem;
        font-weight: 600;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7), 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 0, 0, 0.3);
    }
    
    .hero-section .hero-content {
        padding: 40px 20px;
    }
}

/* Mobile Typography Only - Layout handled in consolidated styles */
@media (max-width: 767px) {
    .hero-section h1 {
        font-size: 1.75rem;
        font-weight: 900 !important;
        text-shadow: 0 3px 12px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 0, 0, 0.4);
        -webkit-text-stroke: 0.3px rgba(0, 0, 0, 0.3);
    }
    
    .hero-section .lead {
        font-size: 1rem;
        font-weight: 600;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3);
    }
    
    .hero-section .hero-content {
        padding: 30px 15px;
    }
    
    .hero-section .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

/* Small Mobile Typography Only */
@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.5rem;
        font-weight: 900 !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 0, 0, 0.4);
        -webkit-text-stroke: 0.3px rgba(0, 0, 0, 0.3);
    }
    
    .hero-section .lead {
        font-size: 0.95rem;
        font-weight: 600;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 0, 0, 0.3);
    }
    
    .hero-section .hero-content {
        padding: 25px 15px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   HEADER VE HERO DUZENI - MOBIL UYUMLU
   ========================================== */

/* Header sabit yukseklik */
.header {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 70px;
    z-index: 99999;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Body padding - header yuksekligi kadar */
body {
    padding-top: 70px !important;
}

/* Hero section header'dan baslar */
.hero-section {
    margin-top: 0 !important;
}

/* Mobil header yuksekligi */
@media (max-width: 991.98px) {
    .header {
        height: 60px;
    }
    
    body {
        padding-top: 60px !important;
    }
    
    .header-nav {
        height: 60px;
        padding: 0;
    }
    
    .header-logo img {
        height: 40px;
    }
}

/* Mobil navbar marka */
.navbar-brand {
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.logo-img {
    height: 38px !important;
    max-width: 130px !important;
    display: block !important;
    margin: 0 !important;
}

/* Mobile phone button ultra compact */
.btn-success.btn-sm {
    padding: 0.2rem 0.4rem !important;
    font-size: 0.8rem !important;
    min-height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Hamburger Menu Button */
.navbar-toggler {
    display: block !important;
    padding: 0.5rem !important;
    font-size: 1rem !important;
    line-height: 1 !important;
    background-color: transparent !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    border-radius: 0.375rem !important;
    cursor: pointer !important;
}

.navbar-toggler-icon {
    display: inline-block !important;
    width: 1.5em !important;
    height: 1.5em !important;
    vertical-align: middle !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 100% !important;
}

/* Desktop'ta gizle */
@media (min-width: 992px) {
    .navbar-toggler {
        display: none !important;
    }
}

/* Align items vertically centered */
.navbar > .container-fluid {
    display: flex !important;
    align-items: center !important;
    min-height: auto !important;
}

/* Mobile/desktop shared navbar defaults */
.navbar-collapse {
    background: #fff;
}

.navbar-nav {
    padding: 10px 0;
}

.nav-link {
    padding: 0.5rem 1rem !important;
    font-size: 0.9rem !important;
}

.navbar-collapse .input-group {
    margin-top: 10px;
}

.navbar-collapse .form-control {
    font-size: 0.9rem;
    padding: 0.5rem;
}

.navbar-collapse .btn {
    padding: 0.5rem 1rem;
}

/* Header navbar */
.header .navbar {
    position: relative;
    z-index: 99999;
    overflow: visible !important;
}

.header .container-fluid {
    overflow: visible !important;
}

.header .dropdown {
    position: static;
}

.header .dropdown-menu {
    z-index: 999999 !important;
}

/* ESKI NAVBAR-COLLAPSE KODLARI - SILINDI */
/* Artik sadece .mobile-panel kullaniliyor */

/* Header opening animation */
@keyframes headerSlideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-opening {
    animation: headerSlideIn 0.5s ease-out;
}

/* Enhanced scroll effect */
.header.scrolled {
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    /* Maintain consistent z-index */
    z-index: 99999;
}

/* Professional Dropdown Menu */
.header .dropdown-menu {
    margin-top: 8px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.08);
    z-index: 999999;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 240px;
    max-width: 280px;
    padding: 8px;
    background: #fff;
    display: none;
}

.header .dropdown-menu.show {
    display: block !important;
}

/* Dropdown Items */
.header .dropdown-item {
    padding: 10px 16px;
    font-size: 0.9rem;
    color: #444;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header .dropdown-item:hover {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
    color: #0d6efd;
    transform: none;
}

.header .dropdown-item i {
    width: 20px;
    text-align: center;
    font-size: 0.85rem;
}

.header .dropdown-divider {
    margin: 6px 0;
    border-color: rgba(0,0,0,0.06);
}

/* Mobile dropdown fix */
@media (max-width: 991.98px) {
    /* Full-screen, kullanıcı dostu mobil menü */
    .header .navbar-collapse {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #ffffff;
        padding: 1.25rem 1.25rem 2rem;
        box-shadow: 0 12px 30px rgba(0,0,0,0.18);
        overflow-y: auto;
        margin-top: 0;
        z-index: 99998;
    }

    .header .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .header .nav-item {
        width: 100%;
    }

    .header .nav-link {
        width: 100%;
        padding: 0.9rem 0 !important;
        font-size: 1rem !important;
    }

    .header .nav-link::after {
        display: none;
    }

    .header .dropdown-menu {
        position: static !important;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        margin-top: 0;
        width: 100%;
        max-width: 100%;
    }

    .header .dropdown-item {
        padding: 0.75rem 0;
        font-size: 0.95rem;
        border-radius: 0;
    }

    .header .dropdown-menu {
        position: static !important;
    }
    
    .header .dropdown-menu.show {
        display: block !important;
    }
    
    .header .dropdown-item {
        padding: 12px 16px;
    }
}

/* Dynamic header container - Fixed Header */
.dynamic-header {
    position: relative;
    z-index: 99999;
    margin: 0;
    padding: 0;
    overflow: visible;
}

/* Body base layout adjustments (do not override header padding-top) */
body {
    margin-top: 0;
}

.header .navbar {
    padding: 0.3rem 0;
    overflow: visible;
    position: relative;
}

/* Logo Styles */
.logo-img {
    height: 65px;
    width: auto;
    object-fit: contain;
    max-width: 240px;
    display: block;
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.02);
}

/* Navigation Links */
.header .nav-link {
    color: #333 !important;
    font-size: 0.95rem;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.header .nav-link:hover,
.header .nav-link.active {
    color: #0d6efd !important;
}

.header .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #0d6efd;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.header .nav-link:hover::after,
.header .nav-link.active::after {
    width: 80%;
}

/* Dropdown Menu */
.header .dropdown-menu {
    border: none;
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 260px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.header .dropdown-item {
    border-radius: 8px;
    transition: all 0.2s ease;
}

.header .dropdown-item:hover {
    background: #f0f7ff;
    color: #0d6efd;
}

/* Phone Button - Large and Prominent */
.phone-btn-large {
    font-size: 1.1rem !important;
    padding: 0.6rem 1.5rem !important;
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%) !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3) !important;
    transition: all 0.3s ease !important;
}

.phone-btn-large:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4) !important;
    background: linear-gradient(135deg, #0b5ed7 0%, #0a58ca 100%) !important;
}

.phone-btn-large i {
    font-size: 1.2rem !important;
}

.phone-btn-large span {
    font-size: 1.15rem !important;
    letter-spacing: 0.5px !important;
}

/* Mobile Header Phone Button - Compact with Number */
@media (max-width: 991.98px) {
    .phone-btn-header-mobile {
        padding: 0.35rem 0.75rem !important;
        font-size: 0.85rem !important;
        background: linear-gradient(135deg, #198754 0%, #157347 100%) !important;
        border: none !important;
        box-shadow: 0 2px 8px rgba(25, 135, 84, 0.3) !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.35rem !important;
        width: auto !important;
        height: auto !important;
        min-width: 0 !important;
    }
    
    .phone-btn-header-mobile i {
        font-size: 0.9rem !important;
    }
    
    .phone-btn-header-mobile span {
        font-size: 0.85rem !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
    }
}

/* Mobile Phone Button - Extra Large */
@media (max-width: 991.98px) {
    .phone-btn-mobile {
        font-size: 1.3rem !important;
        padding: 1rem 1.5rem !important;
        background: linear-gradient(135deg, #198754 0%, #157347 100%) !important;
        border: none !important;
        box-shadow: 0 6px 20px rgba(25, 135, 84, 0.4) !important;
        transition: all 0.3s ease !important;
    }
    
    .phone-btn-mobile:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 8px 25px rgba(25, 135, 84, 0.5) !important;
        background: linear-gradient(135deg, #157347 0%, #146c43 100%) !important;
    }
    
    .phone-btn-mobile i {
        font-size: 1.4rem !important;
    }
    
    .phone-btn-mobile span {
        font-size: 1.4rem !important;
        font-weight: 700 !important;
    }
}

.header .dropdown-item:hover i {
    color: #0d6efd !important;
}

/* Search Box */
.header .input-group {
    width: 220px;
}

.header .input-group .form-control {
    border-radius: 25px 0 0 25px;
    border-color: #dee2e6;
}

.header .input-group .form-control:focus {
    box-shadow: none;
    border-color: #0d6efd;
}

.header .input-group .btn {
    border-radius: 0 25px 25px 0;
}

/* Mobile menu close button */
.navbar-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #333;
    padding: 0.25rem 0.5rem;
    margin-right: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-close:hover {
    color: #0d6efd;
}

/* ==================== RESPONSIVE HEADER ==================== */

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .logo-img {
        height: 90px;
        max-width: 320px;
    }
    
    .header .nav-link {
        padding: 0.75rem 1.25rem !important;
        font-size: 1rem;
    }
}

/* Desktop (992px - 1399px) */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .logo-img {
        height: 70px;
        max-width: 240px;
    }
    
    .header .nav-link {
        padding: 0.75rem 0.75rem !important;
        font-size: 0.9rem;
    }
    
    .header .input-group {
        width: 180px;
    }
}

/* Tablet (768px - 991px) */
@media (max-width: 991.98px) {
    .logo-img {
        height: 45px;
        max-width: 160px;
    }
    
    .header .navbar {
        padding: 0.3rem 0;
    }
}

/* Mobile (576px - 767px) */
@media (max-width: 767.98px) {
    .logo-img {
        height: 38px;
        max-width: 130px;
    }
}

/* Small Mobile (< 576px) */
@media (max-width: 575.98px) {
    .logo-img {
        height: 32px;
        max-width: 110px;
    }
    
    .header .container-fluid {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
}

/* Extra Small Mobile (< 400px) */
@media (max-width: 399.98px) {
    .logo-img {
        height: 28px;
        max-width: 95px;
    }
}

.logo h1 {
    color: #007bff;
    font-size: 28px;
    font-weight: bold;
}

.logo p {
    color: #666;
    font-size: 14px;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.nav a:hover {
    color: #007bff;
    background-color: rgba(0,123,255,0.1);
    transform: translateY(-2px);
}

.nav a.active {
    color: #007bff;
    background-color: rgba(0,123,255,0.15);
    font-weight: 600;
}

/* Hamburger menu styles */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    user-select: none;
}

.mobile-menu-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    display: flex;
    border: 2px solid #eaeaea;
    border-radius: 30px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.search-box:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.1);
}

.search-box input {
    padding: 10px 15px;
    border: none;
    outline: none;
    background: transparent;
    width: 200px;
    font-size: 14px;
}

.search-box button {
    padding: 10px 15px;
    border: none;
    background: #007bff;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background: #0056b3;
    transform: scale(1.05);
}

.cart {
    position: relative;
}

.cart a {
    color: #333;
    text-decoration: none;
    font-size: 24px;
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Hero Section - FIXED OVERFLOW ISSUES */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7));
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* HERO SECTION OVERFLOW FIXES */
.hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    max-width: 100vw;
}

.hero-section .hero-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
}

/* Ensure hero images dont overflow */
.hero-image,
.hero-bg-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* Hero overlay should stay within bounds */
.hero-overlay,
.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Hero content container fix */
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 100%;
    overflow: hidden;
}

/* Prevent any hero content from causing overflow */
.hero-section *,
.hero * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Container fixes for hero sections */
.hero-section .container,
.hero .container {
    max-width: 100%;
    overflow: hidden;
    padding-left: 15px;
    padding-right: 15px;
}

/* Ensure hero buttons dont overflow */
.hero-section .btn,
.hero .btn {
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Different background images for each page based on image names */
body[data-page="home"] .hero,
body[data-page="home"] section.bg-primary {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/yenigorsel/anasayfa.webp');
    background-size: cover;
    background-position: center;
}

body[data-page="about"] .hero,
body[data-page="about"] section.bg-primary {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/görsel/kurumsal.webp');
    background-size: cover;
    background-position: center;
}

body[data-page="services"] .hero,
body[data-page="services"] section.bg-primary {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/görsel/havuz bakım.webp');
    background-size: cover;
    background-position: center;
}

body[data-page="products"] .hero,
body[data-page="products"] section.bg-primary {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/görsel/filitre temizleme.webp');
    background-size: cover;
    background-position: center;
}

body[data-page="contact"] .hero,
body[data-page="contact"] section.bg-primary {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/görsel/havuz temizligi.webp');
    background-size: cover;
    background-position: center;
}

/* Service detail pages */
body[data-page="prefabrik-havuz"] .hero,
body[data-page="prefabrik-havuz"] section.bg-primary {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/görsel/prefabrik havuz.webp');
    background-size: cover;
    background-position: center;
}

body[data-page="betonarme-havuz"] .hero,
body[data-page="betonarme-havuz"] section.bg-primary {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/görsel/betonharme havuz.webp');
    background-size: cover;
    background-position: center;
}

body[data-page="ekipman-bakim"] .hero,
body[data-page="ekipman-bakim"] section.bg-primary {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('images/görsel/havuz bakım onarım.webp');
    background-size: cover;
    background-position: center;
}

body[data-page="kimyasal-bakim"] .hero,
body[data-page="kimyasal-bakim"] section.bg-primary {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/görsel/kimyasal bakım.webp');
    background-size: cover;
    background-position: center;
}

body[data-page="temizlik"] .hero,
body[data-page="temizlik"] section.bg-primary {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/görsel/havuz temizligi.webp');
    background-size: cover;
    background-position: center;
}

body[data-page="periyodik-bakim"] .hero,
body[data-page="periyodik-bakim"] section.bg-primary {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/görsel/periyodik bakım .webp');
    background-size: cover;
    background-position: center;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #007bff;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #007bff;
    margin: 15px auto;
}

/* Categories Section */
.categories {
    padding: 80px 0;
    background: white;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-10px);
}

.category-card i {
    font-size: 48px;
    color: #007bff;
    margin-bottom: 20px;
}

.category-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #333;
}

.category-card p {
    color: #666;
}

/* Featured Products */
.featured-products {
    padding: 80px 0;
    background: #f8f9fa;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.product-info p {
    color: #666;
    margin-bottom: 15px;
}

.price {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 15px;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: white;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    text-align: center;
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 10px;
    transition: all 0.3s;
}

.service-card:hover {
    border-color: #007bff;
    box-shadow: 0 5px 15px rgba(0,123,255,0.1);
}

.service-card i {
    font-size: 48px;
    color: #007bff;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #333;
}

.service-card p {
    color: #666;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 250px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 5px;
    overflow: hidden;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: #007bff;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    color: #007bff;
    background-color: rgba(0,123,255,0.1);
}

.dropbtn {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 20px;
    color: #007bff;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #007bff;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #007bff;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: transform 0.3s;
}

.social-icons a:hover {
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #ccc;
}

/* Image overflow fixes for mobile */
@media (max-width: 768px) {
    /* Ensure images don't overflow on mobile */
    img {
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important; /* Shows full image */
    }
    
    .card-img-top {
        height: auto !important; /* Changed to auto */
        aspect-ratio: 4/3; /* Maintain ratio */
    }
    
    .product-card .card-img-top {
        height: auto !important; /* Changed to auto */
        aspect-ratio: 4/3; /* Maintain ratio */
    }
    
    .team-card .card-img-top {
        height: auto !important; /* Changed to auto */
        aspect-ratio: 3/4; /* Maintain ratio */
    }
    
    .image-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .image-grid img {
        max-height: 200px;
    }
    
    .about-team-img {
        max-height: 300px;
    }
    
    .header .container {
        flex-direction: column;
        gap: 15px;
        padding: 10px 15px;
    }
    
    .logo {
        justify-content: center;
        width: 100%;
        padding: 0;
    }
    
    .logo-img {
        height: 50px;
        max-width: 150px;
    }
    
    /* Hamburger menu styles */
    .menu-toggle {
        display: block;
    }

    .nav {
        width: 100%;
        display: none;
        position: relative;
    }

    .nav.mobile-active {
        display: block;
    }
    
    .nav ul {
        flex-direction: column;
        background: white;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        position: static;
        width: 100%;
        max-height: calc(100vh - 100px);
        overflow-y: hidden;
        z-index: 1000;
        display: flex;
    }

    .nav ul li {
        width: 100%;
    }
    
    .nav ul li {
        margin: 10px 0;
        width: 100%;
    }
    
    .nav ul li a {
        display: block;
        padding: 15px;
        width: 100%;
    }
    
    .header-actions {
        width: 100%;
        justify-content: center;
        flex-direction: column;
        gap: 10px;
    }
    
    .search-box {
        width: 100%;
        max-width: 300px;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .category-grid,
    .product-grid,
    .service-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    /* Mobile dropdown adjustments */
    .dropdown {
        position: static;
    }
    
    .dropdown-content {
        position: static;
        display: none;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        margin-top: 10px;
        width: 100%;
        max-width: 100%;
        left: 0;
    }
    
    .dropdown:hover .dropdown-content {
        display: none; /* Disable hover effect on mobile */
    }
    
    .dropdown-content a {
        padding: 15px;
        border-bottom: 1px solid #eee;
    }
    
    .dropdown-content a:last-child {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    /* Extra small screen image fixes */
    img {
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important; /* Shows full image */
    }
    
    .card-img-top {
        height: auto !important; /* Changed to auto */
        aspect-ratio: 4/3; /* Maintain ratio */
    }
    
    .product-card .card-img-top {
        height: auto !important; /* Changed to auto */
        aspect-ratio: 4/3; /* Maintain ratio */
    }
    
    .team-card .card-img-top {
        height: auto !important; /* Changed to auto */
        aspect-ratio: 3/4; /* Maintain ratio */
    }
    
    .image-grid img {
        max-height: none; /* Removed restriction */
        height: auto; /* Changed to auto */
    }
    
    .about-team-img {
        max-height: 250px;
    }
    
    .logo-img {
        height: 40px;
        max-width: 120px;
    }
    
    .nav ul {
        gap: 10px;
        font-size: 13px;
    }
    
    .nav a {
        padding: 5px 8px;
        font-size: 13px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .search-box input {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .search-box button {
        padding: 8px 12px;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .category-grid,
    .product-grid,
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card,
    .category-card,
    .service-card {
        padding: 15px;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
    
    /* Mobile dropdown adjustments for small screens */
    .dropdown-content {
        max-width: 100%;
        width: calc(100vw - 40px);
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ==================== PROFESSIONAL FOOTER ==================== */
.footer-professional .footer-links li {
    margin-bottom: 0.5rem;
}

.footer-professional .footer-links a {
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-professional .bg-dark .text-muted,
.footer-professional .bg-dark .text-muted span {
    color: rgba(255, 255, 255, 0.9) !important;
}

.footer-professional .bg-dark a.text-muted {
    color: rgba(255, 255, 255, 0.9) !important;
}

.footer-professional .bg-dark a.text-muted:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

.footer-professional .bg-dark .footer-links a {
    color: rgba(255, 255, 255, 0.85);
}

.footer-professional .bg-dark .footer-links a:hover {
    color: #ffffff;
}

/* Footer Logo */
.footer-professional .bg-dark img {
    max-height: 80px;
    width: auto;
    filter: none;
    opacity: 1;
}

/* Footer İletişim Bilgileri */
.footer-professional .bg-dark ul.text-muted li {
    color: rgba(255, 255, 255, 0.9) !important;
}

.footer-professional .bg-dark ul.text-muted li span {
    color: rgba(255, 255, 255, 0.9) !important;
}

.footer-professional .bg-dark ul.text-muted li a {
    color: rgba(255, 255, 255, 0.9) !important;
}

.footer-professional .bg-dark ul.text-muted li a:hover {
    color: #ffffff !important;
}

.footer-professional .footer-links a:hover {
    color: #0d6efd;
    padding-left: 5px;
}

.footer-professional .btn-outline-light:hover {
    background: #0d6efd;
    border-color: #0d6efd;
}

/* Footer Responsive */
@media (max-width: 767.98px) {
    .footer-professional .col-lg-4 {
        text-align: center;
    }
    
    .footer-professional .d-flex.gap-2 {
        justify-content: center;
    }
    
    .footer-professional .footer-links {
        text-align: left;
    }
}

/* ==================== FLOATING WHATSAPP BUTTON ==================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    background: #128C7E;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    margin: 0;
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* WhatsApp Tooltip */
.whatsapp-float::before {
    content: 'WhatsApp ile İletişim';
    position: absolute;
    right: 70px;
    background: #333;
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-float:hover::before {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    /* MOBILE OVERFLOW FIXES - ULTIMATE SOLUTION */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
        width: 100vw;
    }
    
    .container,
    .container-fluid {
        overflow-x: hidden;
        max-width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .row {
        margin-left: 0;
        margin-right: 0;
        overflow-x: hidden;
    }
    
    [class*="col-"] {
        padding-left: 8px;
        padding-right: 8px;
        overflow-x: hidden;
    }
    
    img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
    }
    
    .hero-section,
    .hero {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    .hero-image,
    .hero-bg-image {
        max-width: 100vw !important;
        width: 100vw !important;
        height: auto !important;
        object-fit: cover;
        object-position: center;
    }
    
    .whatsapp-float {
        bottom: 25px !important;
        right: 25px !important;
        width: 55px !important;
        height: 55px !important;
        font-size: 26px !important;
        z-index: 1000000 !important;
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5) !important;
    }
    
    .whatsapp-float::before {
        display: none;
    }
}

/* ULTIMATE OVERFLOW PREVENTION */
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
}

.hero-section,
.hero {
    overflow: hidden;
    max-width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==================== ENHANCED MOBILE RESPONSIVE ==================== */

/* Extra small devices (phones, 320px and up) */
@media (max-width: 575.98px) {
    /* Typography */
    h1, .display-1 { font-size: 2rem !important; }
    h2, .display-2 { font-size: 1.75rem !important; }
    h3, .display-3 { font-size: 1.5rem !important; }
    h4, .display-4 { font-size: 1.25rem !important; }
    .lead { font-size: 1rem !important; }
    
    /* Spacing */
    .py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
    .mb-5 { margin-bottom: 2rem !important; }
    
    /* Cards */
    .card-body { padding: 1rem !important; }
    
    /* Buttons */
    .btn-lg {
        padding: 0.5rem 1rem !important;
        font-size: 0.9rem !important;
    }
    
    /* Hero Section */
    .hero-content h1 { font-size: 1.75rem; }
    .hero-content p { font-size: 1rem; }
    
    /* Footer */
    .footer-professional .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Contact cards */
    .card .fa-3x { font-size: 2rem !important; }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    h1, .display-3 { font-size: 2.25rem !important; }
    h2 { font-size: 1.75rem !important; }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .logo-img {
        height: 60px;
        max-width: 200px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    /* Larger tap targets */
    .nav-link {
        padding: 1rem !important;
    }
    
    .footer-links a {
        padding: 0.5rem 0;
        display: block;
    }
}

/* Safe area for notched devices (iPhone X, etc.) */
@supports (padding: max(0px)) {
    .footer-professional {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
    
    .whatsapp-float {
        bottom: max(20px, calc(env(safe-area-inset-bottom) + 10px));
        right: max(20px, env(safe-area-inset-right));
    }
}

/* FINAL OVERFLOW PREVENTION */
@media screen and (max-width: 1200px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }
}

/* Ensure no horizontal scroll on any device */
body::-webkit-scrollbar {
    display: none;
}

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Mobil menü açıkken arka plan scroll'unu kilitle */
body.mobile-menu-open {
    overflow: hidden;
    height: 100vh;
}

/* ==================== GLOBAL SCROLLBAR GÖRÜNÜRLÜĞÜNÜ KALDIR ==================== */
/* Tüm iç alanlarda scroll çalışsın ama çubuklar görünmesin */
*::-webkit-scrollbar {
    width: 0;
    height: 0;
}

* {
    -ms-overflow-style: none;  /* IE/Edge */
    scrollbar-width: none;     /* Firefox */
}

/* Print styles */
@media print {
    .whatsapp-float,
    .header,
    .footer-professional {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-content {
        padding: 1rem 0;
    }
    
    .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}

/* ULTIMATE OVERFLOW PREVENTION FOR ALL PAGES */
/* Sadece box-sizing'i global yap, genişlikleri kısıtlama */
* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100vw;
}

.container,
.container-fluid {
    overflow-x: hidden;
    max-width: 100%;
}

.hero-section,
.hero {
    overflow: hidden;
    max-width: 100vw;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.hero-image,
.hero-bg-image {
    max-width: 100vw;
    width: 100vw;
    height: auto;
    object-fit: cover;
    object-position: center;
}

/* Force all elements to stay within viewport */
[class*="col-"],
.row,
.card,
.card-body,
.card-img-top {
    overflow-x: hidden;
    max-width: 100%;
}

/* ULTIMATE RESPONSIVE IMAGE FIXES - COMPACT */
.hero-image,
.hero-bg-image {
    width: 100%;
    height: auto;
    max-width: 100vw;
    max-height: 70vh;
    object-fit: contain; /* Shows full image without cropping */
    object-position: center;
    display: block;
    margin: 0 auto;
}

/* USER-FRIENDLY IMAGE GALLERY - COMPACT */
.image-gallery {
    position: relative;
    width: 100%;
    max-height: 70vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    display: block;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto;
    object-fit: contain;
}

.gallery-image:hover {
    transform: scale(1.02);
}

/* Simple navigation dots */
.gallery-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.nav-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-dot.active {
    background: white;
    border-color: #007bff;
    transform: scale(1.2);
}

.nav-dot:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Scroll hint for users */
.scroll-hint {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    font-size: 14px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}  
    40% {transform: translateX(-50%) translateY(-10px);}  
    60% {transform: translateX(-50%) translateY(-5px);}  
}

/* Auto-scroll button */
.auto-scroll-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    border-radius: 30px;
    padding: 12px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 10;
}

.auto-scroll-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Simple fade transition between images */
.gallery-image {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.gallery-image.active {
    opacity: 1;
    position: relative;
}

/* Mobile friendly */
@media (max-width: 768px) {
    .nav-dot {
        width: 16px;
        height: 16px;
    }
    
    .auto-scroll-btn {
        padding: 15px 25px;
        font-size: 16px;
    }
    
    .scroll-hint {
        font-size: 16px;
    }
}

/* Hero section responsive heights - COMPACT */
.hero-section {
    min-height: 300px;
    max-height: 70vh;
}

@media (min-width: 1200px) {
    .hero-section {
        min-height: 350px;
        max-height: 60vh;
    }
}

@media (max-width: 992px) {
    .hero-section {
        min-height: 250px;
        max-height: 60vh;
    }
}

/* Mobile Hero - Consolidated Styles */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: 500px;
        height: 60vh;
        max-height: 700px;
    }
    
    .hero-section .hero-bg-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    
    .hero-section .hero-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center;
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: 450px;
        height: 55vh;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 400px;
        height: 50vh;
    }
}

/* Small mobile adjustments handled in consolidated styles above */

/* Swiper Slider Styles */
.swiper-container {
    width: 100%;
    padding: 10px 0;
}

.swiper-slide {
    width: auto;
    flex-shrink: 0;
}

.swiper-wrapper {
    align-items: center;
}

@media (max-width: 767.98px) {
    .swiper-slide {
        width: 80%;
    }
    
    .swiper-slide .card-img-top {
        height: 120px !important;
    }
}

@media (min-width: 768px) {
    .swiper-slide {
        width: 35%;
    }
    
    .swiper-slide .card-img-top {
        height: 130px !important;
    }
}

@media (min-width: 1024px) {
    .swiper-slide {
        width: 25%;
    }
    
    .swiper-slide .card-img-top {
        height: 140px !important;
    }
}

/* All images responsive by default - COMPACT */
img {
    max-width: 100%;
    max-height: 80vh;
    height: auto;
    width: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain; /* Shows full image without cropping */
}

/* Container overflow prevention */
.container,
.container-fluid {
    overflow-x: hidden;
    max-width: 100%;
}
