@media screen and (max-width: 992px) {
    .navbar {
        width: 95%;
    }

    .inner_anasayfa {
        flex-direction: column-reverse;
        /* Slider on top (visual), Text on bottom */
        padding-top: 100px;
        gap: 40px;
        padding-bottom: 40px;
    }

    .child_anasayfa h1 {
        font-size: 40px;
    }
}

@media screen and (max-width: 768px) {

    /* Header & Menu */
    .logo img {
        max-height: 60px;
        /* Revised mobile size */
    }

    /* Header & Menu */
    #menu_bar {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 45px;
        height: 45px;
        padding: 12px 10px;
        cursor: pointer;
        z-index: 1001;
        background: transparent;
        border-radius: 50%;
        transition: var(--transition);
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    #menu_bar:hover {
        background: rgba(148, 0, 0, 0.05);
    }

    #menu_bar span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--primary-color);
        border-radius: 3px;
        transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
        transform-origin: center;
    }

    /* Hamburger Animation to X */
    #menu_bar.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--primary-color);
    }

    #menu_bar.active span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }

    #menu_bar.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: var(--primary-color);
    }

    .nav_links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        /* Reduced width */
        max-width: 300px;
        /* Max width constraint */
        /* Drawer style */
        height: auto;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        /* Move items to top */
        gap: 30px;
        transition: var(--transition);
        box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.1);
        padding: 70px 40px 40px;
        /* Reduced top padding */
        border-radius: 0 0 0 30px;
    }

    .nav_links.active {
        right: 0;
    }

    .nav_links li a {
        font-size: 20px;
        color: var(--text-dark) !important;
        padding: 10px 20px;
        width: 100%;
        text-align: center;
    }

    .nav_links li a:hover {
        background: transparent;
        color: var(--primary-color) !important;
    }

    /* Hero Section */
    .child_anasayfa h1 {
        font-size: 32px;
        text-align: center;
    }

    .child_anasayfa p {
        text-align: center;
        margin: 0 auto 30px;
    }

    .child_anasayfa {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Sections */
    .section_title h2 {
        font-size: 28px;
    }

    /* Ürünler - Centered Grid on Mobile */
    .innerurunler {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        /* Smaller min-width for mobile */
        justify-content: center;
        /* Center the grid tracks */
        padding: 40px 20px;
        gap: 30px;
    }

    .innerurunler_child {
        margin: 0 auto;
        /* Center individual items if they don't fill width */
        width: 100%;
        max-width: 400px;
        /* Prevent too wide items on tablets */
    }

    .inner_testi {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 20px;
    }

    .testi_img img {
        width: 100%;
        max-width: 400px;
    }

    /* Contact */
    .inner_contact {
        flex-direction: column;
        padding: 40px 0;
    }

    .child_contact {
        width: 100%;
    }

    .child_contact form {
        padding: 30px 20px;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-item h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .address-line {
        justify-content: center;
    }
}