﻿@charset "utf-8";

/* Modern & Responsive CSS Document */
@font-face {
    font-family: 'Myriad Pro';
    src: url('../font/MyriadWebPro.ttf'),
        url('../font/MyriadWebPro-Bold.ttf'),
        url('../font/MyriadWebPro.eot'),
        url('../font/MyriadWebPro-Bold.eot');
}

:root {
    --primary-red: #d81e22;
    --primary-blue: #0562a4;
    --bg-gray: #ebe9e9;
    --text-dark: #000;
    --text-muted: #999;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Myriad Pro', sans-serif;
    background: url(../images/zemin.png) left top;
    line-height: 1.5;
}

#genel {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#header {
    width: 100%;
}

.logo {
    max-width: 950px;
    width: 95%;
    height: 207px;
    margin: 10px auto;
    background: url(../images/logo.png) no-repeat center;
    background-size: contain;
}

.menuzemin {
    width: 100%;
    background: #F1F1F1;
}

.menu {
    max-width: 950px;
    width: 100%;
    margin: 0 auto;
}

.menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.menu li {
    flex: 1;
    min-width: 150px;
    text-align: center;
    border-right: 2px solid var(--primary-red);
    padding: 10px 0;
}

.menu li:last-child {
    border-right: none;
}

.menu a {
    text-decoration: none;
    font-size: 18px;
    color: var(--text-dark);
    transition: color 0.5s ease-out;
}

.menu a:hover {
    color: var(--primary-red);
}

#slider {
    width: 100%;
    margin-top: 20px;
    border-top: 2px solid #CCC;
    border-bottom: 2px solid #CCC;
    overflow: hidden;
}

#slider img {
    width: 100%;
    height: auto;
    display: block;
}

.b1 {
    width: 100%;
    padding: 20px 0;
}

#altlink {
    max-width: 950px;
    width: 95%;
    min-height: 210px;
    margin: 50px auto 0 auto;
    background: url(../images/alt3.png) no-repeat center;
    background-size: contain;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 20px;
}

#altlink a {
    flex: 1;
    color: var(--text-muted);
    font-size: 18px;
    text-decoration: none;
    text-align: center;
}

#footer {
    width: 100%;
    padding: 20px 0;
    background: var(--bg-gray);
    margin-top: auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.altsol {
    width: 259px;
    height: 95px;
    background: url(../images/altsol.png) no-repeat center;
    background-size: contain;
}

.altsag {
    max-width: 591px;
    width: 100%;
}

.altsag img {
    max-width: 100%;
    height: auto;
}

#kurumsal,
#hizmetler,
#galeri,
#iletisim {
    max-width: 950px;
    width: 95%;
    margin: 40px auto;
}

.k1,
.k2 {
    width: 100%;
    height: 300px;
    margin-bottom: 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 15px;
}

.k1 {
    background-image: url(../images/abc.png);
}

.k2 {
    background-image: url(../images/k2.png);
}

#kurumsal p {
    color: #a21445;
    font-size: 18px;
}

/* Hizmetler Grid */
#hizmetler-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.hizmet-item {
    width: 100%;
}

.hizmet-item img {
    width: 100%;
    height: 236px;
    object-fit: none;
    /* Sprite yapısını korumak için */
    background: url(../images/hizmetler.png) no-repeat;
}

.emisyon img {
    background-position: 0 0;
}

.yedek img {
    background-position: -493px 0;
}

.servis img {
    background-position: 0px -258px;
}

.yag img {
    background-position: -492px -254px;
}

/* Galeri Grid */
#galeri-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.foto {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transition: all 0.5s ease-out;
}

.foto img:hover {
    transform: scale(1.1);
    opacity: 1;
    cursor: pointer;
}

/* İletisim */
#iletisim-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.maps {
    width: 100%;
    height: 400px;
}

.maps iframe {
    width: 100%;
    height: 100%;
}

form {
    flex: 1;
    min-width: 300px;
}

form table {
    width: 100%;
}

.gir,
.mes {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.mes {
    height: 150px;
}

.buton {
    width: 100%;
    padding: 10px;
    background: var(--primary-red);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.ilt {
    flex: 0 0 350px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--primary-red);
}

.ilt h3 {
    margin: 0 0 15px 0;
    color: var(--primary-red);
    font-size: 20px;
}

.ilt p {
    margin: 8px 0;
    font-size: 16px;
    color: #444;
    line-height: 1.4;
}

.ilt i {
    color: var(--primary-red);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 750px;
    /* Genişliği artırdım */
    max-width: 100%;
    color: #555;
    font-size: 13px;
    gap: 15px;
}

.footer-contact {
    display: flex;
    flex-wrap: nowrap;
    /* Satır sonu engelleme */
    gap: 15px;
    white-space: nowrap;
}

.footer-addr {
    text-align: center;
    line-height: 1.4;
    flex: 1;
}

.developer {
    font-size: 11px;
    white-space: nowrap;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .menu li {
        min-width: 50%;
        border-right: none;
        border-bottom: 1px solid var(--primary-red);
    }

    #altlink {
        flex-direction: column;
        align-items: center;
        background-size: 100%;
        height: auto;
        padding-top: 150px;
    }

    #altlink a {
        margin: 5px 0;
    }

    .altsag {
        margin-top: 20px;
    }
}

/* Modal / Popup Styles */
#modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#modal-overlay.active {
    display: flex;
    opacity: 1;
}

#modal-content {
    position: relative;
    width: 598px;
    max-width: 90%;
    height: 426px;
    background: url(../images/30.png) no-repeat center;
    background-size: contain;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    animation: modalSlideUp 0.5s ease forwards;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: var(--primary-red);
    color: #fff;
    border: none;
    padding: 5px 15px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
}

#modal-close:hover {
    background: #fff;
    color: var(--primary-red);
}