/* Genel Stil */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    color: #333;
}

.section {
    padding: 60px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    color: #990000; /* Kırmızı Tonu */
    margin-bottom: 20px;
}

p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    background-color: #990000; /* Kırmızı Tonu */
    color: yellow;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #5b5b5b; /* Hover'da koyu gri */
}

/* Header ve Navigasyon */
.hero-section {
    background: url('https://www.xn--paalar-xjb.com.tr/img/pasa09.jpeg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 150px 20px;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Hafif karartma */
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Yeni Navbar Kutusu */
.navbar-wrapper {
    position: fixed; /* Kutu artık sabit */
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Kutunun başlangıç arka planı */
    z-index: 100;
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Arka plan ve gölge animasyonu */
}

.navbar-wrapper.scrolled { /* Kaydırıldığında kutunun stilini değiştir */
    background-color: rgba(0, 0, 0, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px; /* Menünün maksimum genişliği, ortalanmasını sağlar */
    margin: 0 auto; /* Menüyü ortalar */
    padding: 20px 40px; /* İç boşluklar */
    color: white; /* Menü içindeki metin rengi */
}

.navbar .logo {
    font-size: 28px;
    font-weight: bold;
    color: white;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; /* Varsayılan olarak yan yana */
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #990000; /* Hover rengini kırmızıya uyarladım */
}

/* Mobil Menü (Hamburger İkonu) */
.menu-toggle {
    display: none; /* Varsayılan olarak gizli (büyük ekranlarda) */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 101; /* Navbar'dan daha yüksek */
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

/* Menü açıkken hamburger ikonunun animasyonu */
.menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero section paddingini ayarlayın ki menü tarafından gizlenmesin */
.hero-section {
    padding-top: 150px; /* Navbar yüksekliğine göre ayarlayın */
}

/* Hakkımızda, Hizmetler ve Galeri ana görsellerinin stilini güncelledim */
.about-img, .services-img, .gallery-main-img {
    border-radius: 8px; /* Resimlerin köşelerini yumuşatır */
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 0 auto 30px auto; /* Ortala ve alt boşluk ekle */
    max-width: 600px; /* Resmin maksimum genişliği */
}

.about-img img, .services-img img, .gallery-main-img img {
    width: 100%;
    height: auto; /* Oranları korur */
    display: block; /* Altındaki boşluğu kaldırır */
}

/* Hizmetler */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background-color: #f4f7f6;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer; /* Tıklanabilir olduğunu belirtir */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* İçeriği dağıtır */
    align-items: center;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.service-item i {
    font-size: 48px;
    color: #990000; /* İkon rengini kırmızıya uyarladım */
    margin-bottom: 20px;
}

.service-item p {
    flex-grow: 1; /* Paragrafın esnek büyümesini sağlar */
}

.service-item .read-more {
    display: inline-block;
    margin-top: 15px;
    color: #990000;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
}

/* Projeler (Galeri) */
.projects-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.project-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project-item h3 {
    margin: 15px 15px 5px;
    color: #2c3e50;
}

.project-item p {
    margin: 0 15px 15px;
    font-size: 14px;
    color: #555;
}

/* İletişim */
.contact-container {
    display: flex;
    flex-wrap: wrap; /* Küçük ekranlarda alt alta geçmesini sağlar */
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.contact-details {
    flex: 1; /* Esnek boyutlandırma */
    min-width: 300px; /* Minimum genişlik */
    text-align: left;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.contact-details p {
    margin-bottom: 15px;
    font-size: 17px;
    display: flex;
    align-items: center;
}

.contact-details i {
    color: #990000; /* İletişim ikon rengini kırmızıya uyarladım */
    margin-right: 12px;
    font-size: 20px;
}

.contact-buttons {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Butonlar arası boşluk */
}

.contact-btn {
    width: 100%; /* Butonların genişliği */
    padding: 15px 20px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.contact-btn i {
    margin-right: 10px;
    font-size: 18px; /* İkon boyutunu ayarlayın */
}

/* Yeni renkler için buton sınıfları */
.contact-btn.whatsapp-btn {
    background-color: #25D366; /* WhatsApp yeşili */
    color: white;
}

.contact-btn.whatsapp-btn:hover {
    background-color: #1DA851;
}

.contact-btn.email-btn {
    background-color: #D44638; /* Gmail kırmızısı gibi */
    color: white;
}

.contact-btn.email-btn:hover {
    background-color: #B03A2E;
}


.contact-form {
    flex: 1; /* Esnek boyutlandırma */
    min-width: 300px; /* Minimum genişlik */
    margin-top: 0; /* Üstteki margin'i kaldırıyoruz, flex zaten boşluk veriyor */
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    margin-top: 0;
    text-align: center;
    color: #2c3e50;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    width: calc(100% - 30px); /* Padding'i hesaba kat */
    margin-bottom: 15px; /* Inputlar arası boşluk */
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    cursor: pointer;
    border: none;
    width: 100%;
}

.map-container {
    margin-top: 60px;
    text-align: center;
}

.map-container h3 {
    margin-bottom: 25px;
    color: #2c3e50;
}

.map-container iframe {
    width: 100%;
    max-width: 900px; /* Haritanın maksimum genişliği */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.social-links a {
    color: white;
    font-size: 24px;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #990000; /* Sosyal medya ikon hover rengini kırmızıya uyarladım */
}

/* Pop-up (Modal) Stilleri */
.modal {
    display: none; /* Varsayılan olarak gizli */
    position: fixed; /* Ekranı kaplar */
    z-index: 1000; /* Diğer her şeyin üstünde */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* İçerik taşarsa kaydırma çubuğu */
    background-color: rgba(0, 0, 0, 0.7); /* Hafif karartılmış arka plan */
    animation: fadeIn 0.3s forwards; /* Açılış animasyonu */
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto; /* Dikeyde ve yatayda ortalama */
    padding: 30px;
    border: 1px solid #888;
    width: 80%; /* Modal genişliği */
    max-width: 700px; /* Maksimum genişlik */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideInTop 0.4s forwards; /* Açılış animasyonu */
    text-align: left; /* İçerik hizalaması */
}

.modal-content h3 {
    color: #990000;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

.modal-content ul {
    list-style: disc; /* Liste işaretçileri */
    padding-left: 25px;
    margin-bottom: 20px;
}

.modal-content ul li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: #333;
    text-decoration: none;
}

/* Animasyonlar */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInTop {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive Düzenleme */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .menu-toggle {
        display: flex; /* Hamburger ikonunu göster */
    }

    .nav-links {
        display: none; /* Linkleri başlangıçta gizle */
        flex-direction: column;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.9); /* Menü açıldığında arka plan */
        position: absolute; /* Navbar'ın içinde olduğu için, kutunun üstünden başlar */
        top: 60px; /* Navbar yüksekliğine göre ayarla */
        left: 0;
        padding: 20px 0;
        text-align: center;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active { /* JavaScript ile açılacak sınıf */
        display: flex; /* Menü açıldığında göster */
    }

    .nav-links li {
        margin: 15px 0; /* Dikey boşluk */
    }

    .nav-links a {
        padding: 10px 0;
        display: block; /* Linklerin tüm alanı kaplamasını sağlar */
    }

    .contact-container {
        flex-direction: column; /* Küçük ekranlarda alt alta sırala */
    }

    .contact-details,
    .contact-form {
        min-width: auto; /* Otomatik genişlik */
        width: 100%;
    }

    .modal-content {
        width: 90%; /* Mobil cihazlarda daha geniş */
        margin: 5% auto; /* Daha az üst boşluk */
    }
}