/* Genel Ayarlar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
}

a {
    text-decoration: none;
    color: #fff;
}

.container {
    width: 80%;
    margin: 0 auto;
    max-width: 1200px;
}

html {
    scroll-behavior: smooth; /* Yumuşak kaydırma */
}

/* Navbar */
#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    padding: 1.5rem 3rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s ease;
}

#navbar .logo img {
    height: 50px;
}

#navbar ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

#navbar ul li a {
    font-size: 1rem;
    letter-spacing: 0.05rem;
    text-transform: uppercase;
    font-weight: bold;
    transition: color 0.3s ease;
}

#navbar ul li a:hover {
    color: #00b894; /* Teknoloji yeşili */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Gölge ve parlama */
}

/* Hero Bölümü */
header {
    background: #333 url('images/background.jpg') no-repeat center center/cover;
    background-size: cover;
    background-attachment: scroll; /* Arka planın kaydırılmasını iptal eder */
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
    color: #fff;
    position: relative;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Resim üzerine koyu bir katman */
}

header h1 {
    font-size: 4.5rem;
    font-weight: 700;
    color: #00b894;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    position: relative;
    z-index: 2;
}

header p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}


/* CTA (Call to Action) Butonu */
.cta {
    background-color: #00b894;
    padding: 1.2rem 2.5rem;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta:hover {
    background: #019d6a;
    transform: scale(1.1);
}

/* Bölüm Başlıkları */
section {
    padding: 4rem 0;
}

#about h2,
#why-us h2,
#services h2,
#contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #0066ff;
}

/* Hizmet ve Özellik Kartları */
.features, .services {
    display: flex;
    justify-content: space-between;
    text-align: center;
}

.feature, .service {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
    width: 23%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature:hover, .service:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(0, 184, 148, 0.3); /* Yeşil gölge efekti */
}

/* İletişim Formu */
#contact form {
    display: flex;
    flex-direction: column;
    width: 50%;
    margin: 0 auto;
    gap: 1rem;
}

#contact input, 
#contact textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

#contact button {
    background-color: #0066ff;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#contact button:hover {
    background-color: #004db3;
}

/* Footer */
footer {
    background-color: #222;
    color: #fff;
    padding: 2rem 0;
    text-align: center;
}

footer p {
    font-size: 1rem;
    color: #00b894;
}

footer .socials a {
    color: #00b894;
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: transform 0.3s ease;
}

footer .socials a:hover {
    transform: scale(1.2);
    color: #019d6a;
}

/* Medya Sorguları */
@media (max-width: 768px) {
    .features, .services {
        flex-direction: column;
        gap: 2rem;
    }

    #contact form {
        width: 100%;
    }
}

/* Animasyonlar */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Küçük ekranlar (Tabletler ve küçük cihazlar) için */
@media (max-width: 768px) {
    /* Navbar */
    #navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    #navbar ul {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    #navbar ul li {
        width: 100%;
        text-align: left;
    }

    /* Hero Bölümü */
    header h1 {
        font-size: 2.5rem;
    }

    header p {
        font-size: 1.2rem;
    }

    .cta {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }

    /* Bölüm başlıkları */
    h2 {
        font-size: 2rem;
    }

    /* Hizmetler ve Özellikler (Grid yapısı tek sütuna düşer) */
    .features, .services {
        flex-direction: column;
        gap: 2rem;
    }

    .feature, .service {
        width: 100%;
    }

    /* İletişim formu */
    #contact form {
        width: 100%;
    }
}

/* Daha küçük ekranlar (Telefonlar) için */
@media (max-width: 480px) {
    /* Navbar */
    #navbar {
        padding: 1rem 1.5rem;
    }

    #navbar .logo img {
        height: 40px;
    }

    #navbar ul li {
        font-size: 0.9rem;
    }

    /* Hero Bölümü */
    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    .cta {
        padding: 0.8rem 1.2rem;
        font-size: 1rem;
    }

    /* Hizmetler ve Özellikler */
    .feature, .service {
        padding: 1.5rem;
    }

    /* Footer */
    footer p {
        font-size: 0.9rem;
    }

    footer .socials a {
        font-size: 1.2rem;
    }
}
/* Masaüstü için menü her zaman görünür */
#menu {
    display: flex; /* Masaüstü ekranlarda menü her zaman görünür */
    gap: 1.5rem;
}

/* Menü hamburger ikonu (Mobilde gösterilecek) */
.menu-icon {
    display: none;
    font-size: 2rem;
    cursor: pointer;
}

/* Mobilde menüyü gizle */
@media (max-width: 768px) {
    #menu {
        display: none; /* Mobilde menü varsayılan olarak gizlenir */
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95); /* Şeffaf koyu arka plan */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh; /* Menü tam ekranı kaplasın */
        padding: 1rem;
        z-index: 999;
        overflow-y: auto; /* Menü uzun olursa kaydırma yapabilmek için */
    }

    /* Menü açıkken görünür hale gelsin */
    #menu.show {
        display: flex;
    }

    /* Hamburger menü (Mobilde gösterilir) */
    .menu-icon {
        display: block; /* Mobilde hamburger ikonu görünür olacak */
        z-index: 1000;
        position: fixed;
        top: 20px;
        right: 20px;
    }

    /* Menü öğelerini tam genişlikte yap */
    #menu li {
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Hafif bir alt çizgi */
    }

    #menu li a {
        color: #fff;
        font-size: 1.5rem;
    }
}
