/* Genel stiler */
/* Genel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
/* Header */
header {
    background-color:#7030A0 ;
    color: black;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: center; /* Logo ve menü hizalaması için merkez */
    align-items: center;
    border-bottom: 2px solid white;
    transition: background-color 0.3s ease;
}

header.scrolled {
    background-color: #3c1f55;
}

header .logo {
    position: absolute; /* Logo bağımsız konumlanır */
    left: 5px; /* Sol kenardan mesafe */
    display: flex;
    align-items: center;
}

header .logo img {
    width: 100px;
    height: 50px;
}

nav {
    display: flex;
    justify-content: center; /* Menü elemanlarını tam ortalar */
    flex-grow: 1;
}

nav ul {
    list-style-type: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;

}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s, border-color 0.3s;
    display: flex;
    align-items: center;
}

nav ul li a i {
    margin-right: 8px; /* Simge ile metin arasındaki mesafe */
}

nav ul li a:hover {
    background-color: #7030A0;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(112, 48, 160, 0.8);
    border-color: white;
}


/* Hero Bölümü */
.hero {
    color: white;
    padding: 200px 0;
    text-align: center;
    background: linear-gradient(90deg, #ffffff, #c0c0c0, #e8e8e8, #ffffff);
    animation: gradientSlide 7s infinite linear;
    background-size: 200% 200%;
    position: relative;
    overflow: hidden;
}

.hero h2 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #7030A0;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #7030A0;
}

.cta-button {
    background-color: #7030A0;
    color: white;
    padding: 15px 30px;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #5b2580;
}

/* Gradyan Animasyonu */
@keyframes gradientSlide {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

/* Hizmetlerimiz Bölümü */
.services {
    background-color: #ffffff;
    padding: 50px 0;
}

.services-heading {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #7030A0;
}

.service {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.service:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.service-text h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #7030A0;
}

.service-text p {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
    padding: 0 15px;
    transition: max-height 0.5s ease-in-out;
}

.service:hover .service-text p {
    max-height: 200px;
}

/* About Bölümü */
.about {
    background-color: #f4f4f4;
    padding: 50px 0;
}

.about ul {
    list-style-type: none;
    padding-left: 0;
}

.about li {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.about li strong {
    color: #7030A0;
}

/* Nasıl Çalışıyoruz Bölümü */
.process {
    background-color: #ffffff;
    padding: 50px 0;
}

.process h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #7030A0;
}

.process ol {
    list-style-type: decimal;
    padding-left: 20px;
}

.process li {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* İletişim Bölümü */
.contact {
    background-color: #f4f4f4;
    padding: 50px 0;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #7030A0;
}

.contact form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact form input, .contact form textarea {
    width: 80%;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

.contact form input:focus, .contact form textarea:focus {
    border-color: #7030A0;
}

.contact form button {
    padding: 15px 30px;
    font-size: 1.2rem;
    color: white;
    background-color: #7030A0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact form button:hover {
    background-color: #5b2580;
}

.contact p {
    text-align: center;
    font-size: 1.1rem;
    margin-top: 20px;
}

/* Footer */
footer {
    background-color: #7030A0; /* Mor */
    color: #ffffff; /* Beyaz */
    text-align: center;
    padding: 20px 0;
}

footer p {
    font-size: 1rem;
    margin: 5px 0;
}

footer .contact-info {
    margin-top: 10px;
    font-size: 1rem;
    line-height: 1.6;
}

footer .contact-info a {
    color: #ffffff; /* Beyaz */
    text-decoration: none;
}

footer .contact-info a:hover {
    text-decoration: none;
}


/* Genel Ayarlar */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Başlıklar */
h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
    color: #7030A0;
}

/* Neden Rbit Teknoloji Kartları */
/* Kart Container ve Genel Ayarlar */
#neden-biz .card-container {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    flex-wrap: wrap; /* Kartlar taşarsa alt satıra geçmesini sağlar */
    align-items: stretch; /* Kartların yüksekliklerini eşitlemek için */
}

/* Kartlar */
#neden-biz .card {
    flex: 1 1 18%; /* Kartların genişliği %18 olacak şekilde ayarlandı */
    background-color: white;
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    height: 180px; /* Kart boyutunu sabitledik */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding: 20px;
    position: relative;
}

/* Başlıkları Ortala */
#neden-biz .card h3 {
    font-size: 1.5rem;
    color: #7030A0; /* Başlıkların mor olması */
    margin: 0; /* Marjinleri sıfırlıyoruz */
    position: absolute;
    top: 50%;  /* Dikeyde ortalama */
    left: 50%; /* Yatayda ortalama */
    transform: translate(-50%, -50%); /* Ortalamayı tamamlamak için */
    z-index: 1; /* Başlık, p yazılarının üstünde kalsın */
    opacity: 1; /* Başlangıçta görünür */
    transition: opacity 0.3s ease; /* Animasyonla kaybolacak */
}

/* Açıklamalar */
#neden-biz .card .description {
    position: absolute;
    top: 0;
    left: 100%;
    background-color: #f8f8f8;
    width: 100%;
    height: 100%;
    padding: 10px;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem; /* Açıklama yazılarının büyüklüğünü arttırdık */
    color: #7030A0; /* Açıklama metni mor */
    transition: left 0.3s ease, opacity 0.3s ease;
    opacity: 0; /* Başlangıçta açıklama görünmez */
}

/* Hover Efekti */
#neden-biz .card:hover .description {
    left: 0;
    opacity: 1; /* Açıklama görünür olacak */
}

#neden-biz .card:hover h3 {
    opacity: 0; /* Hover esnasında başlık kaybolacak */
}

#neden-biz .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    border-color: #7030A0;
}

/* Kartların Renk Ayarları */
#neden-biz .card.white-bg {
    background-color: white;
    color: #7030A0; /* Beyaz arka planlı kartlarda metin mor */
}

#neden-biz .card.purple-bg {
    background-color: #7030A0;
    color: white; /* Mor arka planlı kartlarda metin beyaz */
}

/* Nasıl Çalışıyoruz Kartları */
#calisma .card-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 kart yan yana */
    gap: 20px;
    padding: 0 10px; /* Kartlar arasındaki boşluğu kontrol etmek için */
}

#calisma .process-card {
    background-color: #7030A0;
    color: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 300px; /* Kart boyutunun sabit kalmasını sağlar */
}

#calisma .process-card h3 {
    font-size: 1.7rem;
    margin: 0; /* Marjinleri sıfırlıyoruz, böylece başlık ortada olur */
    position: absolute;
    top: 50%;  /* Dikeyde ortalama */
    left: 50%; /* Yatayda ortalama */
    transform: translate(-50%, -50%); /* Ortalamayı tamamlamak için */
    z-index: 1; /* Başlık, p yazılarının üstünde kalsın */
    transition: opacity 0.3s ease; /* Başlık kaybolacak */
}


#calisma .process-card p {
    font-size: 1.5rem; /* P yazılarını büyütüyoruz */
    position: absolute;
    top: 50%;  /* Ortada başlasın */
    left: 50%; /* Ortada başlasın */
    transform: translate(-50%, -50%); /* Ortalamayı sağlar */
    opacity: 0;  /* Başlangıçta görünmesin */
    width: 90%; /* Yazıyı daha geniş yapalım */
    text-align: center;
    color: white;
    transition: opacity 0.3s ease; /* P yazılarının görünmesi */
}

#calisma .process-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

#calisma .process-card:hover h3 {
    opacity: 0;  /* Hover ile başlık kaybolur */
}

#calisma .process-card:hover p {
    opacity: 1;  /* Hover ile p yazıları görünür hale gelir */
}


#translate-btn {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#translate-btn:hover {
    background-color: #0056b3;
}
