/* Genel Stil */
body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f8fb;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h2 {
    font-family: 'Arial', sans-serif;
    font-size: 2.5rem;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

h3 {
    font-family: 'Arial', sans-serif;
    font-size: 2rem;
    color: #333;
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Header */
header {
    background: #ff4e50;
    color: white;
    padding: 10px 0;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: fixed;
    width: 100%;
    z-index: 50;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo img {
    height: 40px; /* Adjusted logo size */
}

header nav {
    display: flex;
    align-items: center;
}

header nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

header nav ul li {
    margin: 0 10px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    transition: background 0.3s;
}

header nav ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

header .btn {
    background: #fff;
    color: #ff4e50;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background 0.3s;
}

header .btn:hover {
    background: #f4f4f4;
}

#menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    header nav {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    header nav ul {
        flex-direction: column;
        width: 100%;
    }

    header nav ul li {
        width: 100%;
        text-align: center;
    }

    header nav ul li a {
        display: block;
        width: 100%;
    }

    #menu-toggle {
        display: block;
    }

    #menu-toggle.active + nav {
        display: flex;
    }
}

/* Navbar */

/* Menü animasyonu */
#menu {
    transition: all 0.3s ease-in-out;
}

/* Mobil menü arka planı */
@media (max-width: 767px) {
    #menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(220, 38, 38, 0.95); /* Kırmızı arka plan */
        z-index: 1000;
    }
}

/* Hakkımızda */
#about {
    background: white;
    padding: 40px 0;
}

#about img {
    width: 100%;
    border-radius: 10px;
    margin-top: 20px;
}

/* Hizmetler */
#services {
    background: #f4f4f4;
    padding: 40px 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-image {
    position: relative;
}

.service-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
    
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 165, 0, 0.7); /* Transparent orange background */
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 1.2rem;
}

.service-content {
    padding: 20px;
    text-align: center;
}

.service-content h3 {
    margin: 15px 0 10px;
    font-size: 1.5rem;
    color: #2C3E50;
}

.service-content p {
    font-size: 1rem;
    color: #666;
}

/* İletişim */
#contact {
    background: #2C3E50;
    color: white;
    padding: 40px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    align-items: center;
}

.contact-info {
    text-align: center;
}

.contact-item {
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 2rem;
    color: #3498DB;
    margin-bottom: 10px;
}

.contact-item p {
    font-size: 1.1rem;
}

.contact-form {
    background: white;
    padding: 20px;
    border-radius: 10px;
    color: #2C3E50;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-form input, .contact-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form button {
    background: #27AE60;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

contact-form button:hover {
    background: #219653;
}

.contact-image img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.contact-info p {
    margin: 10px 0;
    font-size: 1.1rem;
}

.contact-info i {
    margin-right: 10px;
    color: #3498DB;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

form input, form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

form button {
    background: #27AE60;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

form button:hover {
    background: #219653;
}

/* Footer */
footer {
    background: #2C3E50;
    color: white;
    padding: 20px 0;
    text-align: center;
}

/* Galeri Stili */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px;
}

.gallery-item {
    flex: 1 1 calc(33.33% - 15px); /* 3 sütunlu grid */
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 15px; /* Yuvarlak kenarlar */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Gölge efekti */
}

.fixed-size {
    width: 100%;
    height: 200px; /* Sabit yükseklik */
    object-fit: cover;
    cursor: pointer;
    border-radius: 15px; /* Yuvarlak kenarlar */
    transition: transform 0.3s ease;
}

.fixed-size:hover {
    transform: scale(1.1);
}

/* Modal Stili */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease; /* Yumuşak açılış animasyonu */
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    border-radius: 15px; /* Yuvarlak kenarlar */
    animation: zoomIn 0.3s ease; /* Zoom efekti */
}

@keyframes zoomIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover {
    color: #bbb;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .gallery-item {
        flex: 1 1 calc(50% - 15px); /* 2 sütunlu grid */
    }
}

@media (max-width: 480px) {
    .gallery-item {
        flex: 1 1 100%; /* 1 sütunlu grid */
    }

    .fixed-size {
        height: 150px; /* Mobilde daha küçük resimler */
    }

    .modal-content {
        max-width: 95%;
        max-height: 70%;
    }
}