/* Genel Reset ve Temel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: #f4f6f9;
    color: #333;
    margin: 0;
}

/* Navbar */

.navbar {
    background-color: #3289a8;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Logo ve Site İsmi */
.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 1.8em;
    font-weight: 700;
    margin-left: 10px;
}

.logo img {
    margin-right: 10px;
    border-radius: 50%;  /* Eğer logonuz yuvarlak olacaksa */
}

/* Menü Linkleri */
.navbar ul {
    list-style: none;
    padding: 0;
    display: flex;
}

.navbar ul li {
    margin: 0 20px;
}

.navbar ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Hover Efekti */
.navbar ul li a:hover {
    color: #000000;
}

/* Hamburger Menüsü */
.navbar .menu-icon {
    display: none;
    cursor: pointer;
}

.navbar .menu-icon span {
    background-color: white;
    display: block;
    width: 30px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease;
}

/* Mobile Menü (Ekran küçük olduğunda) */
@media (max-width: 768px) {
    /* Menü öğelerini gizle */
    .navbar ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px; /* navbar altı */
        left: 0;
        width: 100%;
        background-color: #3289a8;
        padding: 10px 0;
    }

    /* Hamburger menüsü göster */
    .navbar .menu-icon {
        display: block;
    }

    /* Menüye aktif olduğunda (toggle) görünürlük ver */
    .navbar.active ul {
        display: flex;
    }

    /* Menü öğelerinin her biri alt alta sıralanacak */
    .navbar ul li {
        margin: 10px 0;
        text-align: center;
    }

    /* Menü öğelerine uygun padding */
    .navbar ul li a {
        font-size: 20px;
    }
}

/* Hero Section */
.hero {
    background: url('https://vitrinhabercom.teimg.com/crop/1280x720/vitrinhaber-com/uploads/2023/06/ankara-saglik-bilimleri-universitesi-gulhane-kulliyesinde-mezuniyet-toreni.jpg') center/cover no-repeat;
    position: relative;
    height: 60vh; /* Hero kısmının yüksekliği */
    width: 100%;
    display: flex;
    flex-direction: column; /* İçeriği dikey olarak hizala */
    justify-content: center; /* Dikeyde ortalar */
    align-items: center; /* Yatayda ortalar */
    text-align: center; /* Metinleri yatayda ortalar */
}

/* Şeffaflık için Overlay Ekleme */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* %50 şeffaflık için siyah overlay */
    z-index: 1; /* Katman sırası */
}

/* Başlık ve Metin */
.hero h1, .hero p {
    position: relative;
    z-index: 2; /* Başlık ve metnin overlay'in üstünde görünmesini sağlar */
    color: white;
    padding: 10px 20px;
}

.hero h1 {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 15px; /* Başlık ile paragraf arasına boşluk */
}

.hero p {
    font-size: 1.2em;
    font-weight: 300;
}

/* Mobil Uyumluluk (Ekran Boyutları Küçüldüğünde) */
@media (max-width: 768px) {
    .hero {
        height: 50vh; /* Mobilde yükseklik biraz daha küçük olabilir */
        padding: 20px;
    }

    /* Başlık boyutunu küçültme */
    .hero h1 {
        font-size: 2.2em;
    }

    /* Paragraf metin boyutunu küçültme */
    .hero p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 40vh; /* Küçük ekranlarda yükseklik daha da küçülebilir */
        padding: 10px;
    }

    /* Başlık boyutunu daha da küçültme */
    .hero h1 {
        font-size: 1.8em;
    }

    /* Paragraf metin boyutunu daha da küçültme */
    .hero p {
        font-size: 0.9em;
    }
}


/* Hakkımızda Bölümü */
.about {
    background-color: #ffffff;
    padding: 60px 20px;
    text-align: center;
}

.about h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 700;
    color: #e74c3c;
}

.about p {
    font-size: 1.2em;
    color: #7f8c8d;
    max-width: 800px;
    margin: 0 auto;
}

/* Referanslar Başlığı ve Kayan Görselleri Ortalamak için Konteyner */
.referans-container {
    position: relative;
    margin-top: 40px;
    overflow: hidden; /* Taşma olmasın diye gizliyoruz */
}

.referans-baslik {
    font-size: 2.5em;
    font-weight: bold;
    color: #8b0000; /* Koyu kırmızı renk */
    margin-bottom: 20px;
    text-align: center;   /* Başlığı ortaladık */
}

/* Kayan Görseller */
.slider {
    display: flex;
    overflow: hidden;
    width: 100%;
}

.slider-item {
    min-width: 150px;
    margin-right: 20px;
    transition: transform 0.2s ease-in-out;
}

.slider-item img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 10px;
}

/* Animasyon - Kayan Etki */
@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Sürekli Kayma için Flex Düzeni */
.slider {
    animation: slide 40s linear infinite; /* Kayma animasyonunu sürekli hale getiriyoruz */
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Mobil uyumluluk: Görsellerin boyutlarını küçültüyoruz */
@media (max-width: 768px) {
    .slider-item {
        min-width: 120px; /* Küçük ekranlarda görsel boyutlarını küçültüyoruz */
        margin-right: 10px;
    }

    .slider-item img {
        max-width: 150px; /* Mobilde görsel boyutlarını küçültüyoruz */
    }

    .referans-baslik {
        font-size: 2em; /* Mobilde başlık boyutunu küçültüyoruz */
    }
}

/* Çok küçük ekranlar için daha da küçültme */
@media (max-width: 480px) {
    .slider-item {
        min-width: 100px; /* Daha küçük ekranlarda görsel boyutlarını küçültüyoruz */
        margin-right: 5px;
    }

    .slider-item img {
        max-width: 120px; /* Daha küçük ekranlarda görsel boyutlarını küçültüyoruz */
    }

    .referans-baslik {
        font-size: 1.5em; /* Çok küçük ekranlar için başlık boyutunu daha da küçültüyoruz */
    }
}


/* Ürün Kartları */
.product-card {
    display: inline-block;
    width: 30%;
    margin: 0 15px 30px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.product-card img:hover {
    transform: scale(1.05);
}

.product-card h3 {
    margin: 20px 0;
    font-size: 1.8em;
    font-weight: bold;
    color: #2c3e50;
}

.product-card p {
    font-size: 1em;
    color: #7f8c8d;
    line-height: 1.6;
}

/* Responsive Tasarım */
@media (max-width: 1024px) {
    .product-card {
        width: 45%; /* Tabletlerde 2 ürün yan yana */
        margin: 0 10px 30px;
    }
}

@media (max-width: 768px) {
    .product-card {
        width: 100%; /* Mobilde her ürün tam genişlikte */
        margin: 0 0 30px;
    }

    .navbar ul li {
        margin: 0 10px;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1.2em;
    }

    /* Ürünler Başlığı */
    .products h2 {
        text-align: center; /* Başlığı tam ortalar */
        font-size: 2.5em;   /* Başlık boyutunu büyütüyoruz */
        color: #2c3e50;     /* Başlık rengi */
        font-weight: 700;    /* Kalın yazı tipi */
        margin-bottom: 40px; /* Başlık ile içerik arasında boşluk */
    }
}

/* Button Stil */
button {
    background-color: #3289a8; /* Modern mor */
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1.2em;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #3289a8;
}

/* Form Stil */
form input, form textarea {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    color: #333;
}

form input:focus, form textarea:focus {
    border-color: #4e73df; /* Fokus rengini mor yapıyoruz */
    outline: none;
}

.map-container {
    margin-top: 40px;
    text-align: center;
}

/* Footer */
footer {
    background-color: #3289a8; /* Mor footer */
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

footer p {
    font-size: 1em;
}

/* Genel Stiller */
.contact {
    padding: 60px 20px;
    background-color: #f5f7f9; /* Hafif gri beyaz arka plan */
    text-align: center;
    font-family: 'Arial', sans-serif;
}

.contact h2 {
    font-size: 2.4em;
    color: #333;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;  /* Başlığı ortaladım */
}

.contact p {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* İletişim Bilgileri */
.contact-info {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 40px;
    text-align: left; /* Sola hizalama eklendi */
}

.contact-info p { }

    ---------------------------------
    /* Ürün Detay Sayfası */
.product-detail {
    padding: 60px 20px;
    background-color: #fff;
}

.product-detail-container {
    display: flex;
    justify-content: space-between;
}

/* Sol Kısım: Fotoğraflar */
.product-images {
    width: 45%;
}

.main-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
}

.thumbnail-images {
    display: flex;
    margin-top: 20px;
}

.thumbnail-images img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-right: 10px;
    cursor: pointer;
    border-radius: 5px;
}

.thumbnail-images img:hover {
    opacity: 0.7;
}

/* Sağ Kısım: Ürün Bilgileri */
.product-info {
    width: 50%;
}

.product-info h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.product-description {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #555;
}

.product-details {
    list-style: none;
    font-size: 1.1em;
    margin-bottom: 30px;
}

.product-details li {
    margin-bottom: 10px;
}

.add-to-cart {
    background-color: #3289a8;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
}

.add-to-cart:hover {
    background-color: #276f87;
}

/* İletişim Formu */
.contact {
    padding: 60px 20px;
    background-color: #f5f7f9;
    text-align: center;
}

.contact form input,
.contact form textarea {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.contact form button {
    background-color: #3289a8;
    color: white;
    padding: 15px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
}

/* Footer */
footer {
    background-color: #3289a8;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

footer p {
    font-size: 1em;
}

