﻿/* Base Reset and Mobile-First Approach */
* {
    box-sizing: border-box;
}

/* CRITICAL: Prevent horizontal overflow on mobile */
html {
    overflow-x: hidden;
    width: 100%;
    height: 100%;
}

body {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
}

/* FORM WRAPPER - Fix ASP.NET form overflow */
form {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Ana Container - Fixed for mobile viewport */
.main-container {
    text-align: center;
    padding: 15px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Logo */
.logo-section {
    margin-bottom: 20px;
}

.logo-button {
    transition: transform 0.3s ease;
    max-width: 100%;
    height: auto;
}

    .logo-button:hover {
        transform: scale(1.05);
    }

    .logo-button img {
        max-width: 100%;
        height: auto;
    }

/* Arama Bölümü */
.search-section {
    margin: 20px auto;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    width: 100%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-textbox {
    padding: 12px 15px;
    border: 2px solid #0033A1;
    border-radius: 25px;
    font-size: 14px;
    width: 100%;
    outline: none;
    box-sizing: border-box;
}

.search-button {
    padding: 12px 20px;
    background: #0033A1;
    color: white;
    border: 2px solid #0033A1;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

    .search-button:hover {
        background: #002080;
        border-color: #002080;
    }

/* CAROUSEL / ICON BUTTONS - COMPLETELY REWRITTEN FOR MOBILE */
.section.top-icon {
    padding: 30px 0;
    background: transparent;
    overflow: hidden;
}

.carousel-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
    padding: 0 20px;
}

    .carousel-wrapper::-webkit-scrollbar {
        display: none;
    }

    .carousel-wrapper.dragging {
        cursor: grabbing;
    }

.carousel-track {
    display: flex;
    gap: 25px;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 0;
    min-height: 180px;
}

.carousel-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ICON BUTTONS - FIXED SIZING */
.icon-image-button {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid #0033A1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 auto 10px auto;
    box-shadow: 0 4px 15px rgba(0, 51, 161, 0.2);
    transition: all 0.3s ease;
    padding: 0;
}

    .icon-image-button img {
        width: 55%;
        height: 55%;
        object-fit: contain;
        pointer-events: none;
    }

    .icon-image-button:hover {
        border-color: #888;
        background-color: #0033A1;
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(0, 51, 161, 0.3);
    }

        .icon-image-button:hover img {
            filter: brightness(0) saturate(100%) invert(75%) sepia(29%) saturate(621%) hue-rotate(125deg) brightness(95%) contrast(92%);
        }

/* ICON LABEL - IMPROVED */
.icon-label {
    font-family: 'Roboto', sans-serif;
    color: #0033A1;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    max-width: 100px;
    word-wrap: break-word;
}

/* MOBILE RESPONSIVE BREAKPOINTS - ENHANCED */
@media screen and (max-width: 768px) {
    .main-container {
        padding: 10px;
        overflow-x: hidden;
    }

    .carousel-wrapper {
        padding: 0 10px;
    }

    .carousel-track {
        gap: 20px;
        min-height: 160px;
        padding: 15px 0;
    }

    .icon-image-button {
        width: 75px;
        height: 75px;
        border-width: 3px;
    }

    .icon-label {
        font-size: 11px;
        max-width: 85px;
    }

    /* Fix search section on tablet */
    .search-section {
        max-width: 400px;
        margin: 15px auto;
        padding: 12px;
    }
}

@media screen and (max-width: 480px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    .main-container {
        padding: 8px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .carousel-wrapper {
        padding: 0 8px;
        width: 100%;
    }

    .carousel-track {
        gap: 15px;
        min-height: 140px;
        padding: 10px 0;
    }

    .icon-image-button {
        width: 65px;
        height: 65px;
        border-width: 3px;
        margin-bottom: 8px;
    }

        .icon-image-button img {
            width: 50%;
            height: 50%;
        }

    .icon-label {
        font-size: 10px;
        font-weight: 500;
        max-width: 75px;
        line-height: 1.2;
    }

    /* Fix search section on mobile */
    .search-section {
        max-width: calc(100% - 16px);
        margin: 10px auto;
        padding: 10px;
    }

    .search-textbox, .search-button {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 10px 12px;
    }

    /* Fix testimonials on mobile */
    .testimonials {
        padding: 2rem 0.5rem;
    }

    .section-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
}

@media screen and (max-width: 320px) {
    .main-container {
        padding: 5px;
    }

    .carousel-wrapper {
        padding: 0 5px;
    }

    .carousel-track {
        gap: 12px;
        padding: 8px 0;
    }

    .icon-image-button {
        width: 55px;
        height: 55px;
        border-width: 2px;
    }

    .icon-label {
        font-size: 9px;
        max-width: 65px;
    }

    .search-section {
        max-width: calc(100% - 10px);
        padding: 8px;
    }
}

/* Bottom Menu */
.bottom-menu {
    margin: 40px 0 30px 0;
    padding: 15px;
}

.menu-title {
    font-family: 'Bahnschrift', Arial, sans-serif;
    font-size: 16px;
    color: #0033A1;
    margin-bottom: 20px;
    font-weight: bold;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.menu-image-button {
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 648px;
    height: auto;
    aspect-ratio: 648/188;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .menu-image-button:hover {
        transform: scale(1.02);
        box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    }

    .menu-image-button img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* Testimonials Section */
.testimonials {
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    font-family: 'Roboto', sans-serif;
    position: relative;
    margin-top: 30px;
}

.testimonials-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

    .testimonials-grid::-webkit-scrollbar {
        display: none;
    }

.testimonials-grid {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.testimonial-card {
    flex: 0 0 85%;
    min-width: 280px;
    max-width: 350px;
    scroll-snap-align: start;
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    position: relative;
    transition: transform 0.3s;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}

    .testimonial-card:hover {
        transform: translateY(-3px);
    }

    .testimonial-card::before {
        content: '"';
        font-size: 3rem;
        color: #1e3c72;
        position: absolute;
        top: -5px;
        left: 15px;
        opacity: 0.3;
    }

.client-info {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.client-name {
    font-weight: 500;
    color: #1e3c72;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
}

.rating {
    display: flex;
    color: #ffd700;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.testimonial-text {
    color: #555;
    line-height: 1.6;
    font-style: italic;
    font-size: 0.9rem;
    font-family: 'Roboto', sans-serif;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    color: #1e3c72;
    margin-bottom: 1rem;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
}

/* Navigasyon Okları */
.testimonials-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30,60,114,0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

    .testimonials-nav.left {
        left: 10px;
    }

    .testimonials-nav.right {
        right: 10px;
    }

/* Focus States */
.search-textbox:focus,
.search-button:focus,
.icon-image-button:focus,
.menu-image-button:focus,
.logo-button:focus {
    outline: 3px solid #0033A1;
    outline-offset: 2px;
}
