/* Genel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #000000 0%, #000010 100%);
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* overflow: hidden; */ /* Kaldırıldı veya overflow-y: auto; olarak değiştirildi */
}

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.language-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    background: linear-gradient(45deg, #007bff, #00c6ff);
    border: none;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
}

.language-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 114, 255, 0.4);
}

/* Dil değiştirme animasyonu */
[data-tr], [data-en] {
    transition: opacity 0.3s ease;
}

/* Mobil cihazlar için dil değiştirme butonu */
@media (max-width: 768px) {
    .language-toggle {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1600px;
    padding: 3rem;
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    animation: fadeIn 1.5s ease-out;
}

.header-logo {
    max-width: 300px;
    height: auto;
    display: block;
}

.header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeIn 1.5s ease-out;
}

.header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3.8rem;
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 1), 0 0 10px rgba(255, 255, 255, 0.9), 0 0 15px rgba(0, 136, 255, 0.8),
        0 0 20px rgba(0, 136, 255, 0.7), 0 0 25px rgba(0, 136, 255, 0.6), 0 0 30px rgba(0, 136, 255, 0.5);
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: 4px;
    position: relative;
    animation: glow 3s ease-in-out infinite alternate;
    text-transform: uppercase;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px rgba(255, 255, 255, 1), 0 0 10px rgba(255, 255, 255, 0.9), 0 0 15px rgba(0, 136, 255, 0.8),
            0 0 20px rgba(0, 136, 255, 0.7), 0 0 25px rgba(0, 136, 255, 0.6), 0 0 30px rgba(0, 136, 255, 0.5);
    }
    to {
        text-shadow: 0 0 10px rgba(255, 255, 255, 1), 0 0 20px rgba(255, 255, 255, 0.9), 0 0 30px rgba(0, 136, 255, 0.8),
            0 0 40px rgba(0, 136, 255, 0.7), 0 0 50px rgba(0, 136, 255, 0.6), 0 0 60px rgba(0, 136, 255, 0.5);
    }
}

.grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    animation: slideUp 1.2s ease-out;
}

.card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    width: calc(25% - 2rem);
    min-width: 280px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 255, 255, 0.1) inset;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 114, 255, 0.4), 0 0 10px rgba(255, 255, 255, 0.2) inset;
    border: 1px solid rgba(0, 198, 255, 0.4);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 198, 255, 0.2), transparent);
    transition: 0.8s;
    z-index: 1;
}

.card:hover::before {
    left: 100%;
}

.card-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 1.5rem;
    border-radius: 15px;
    padding: 15px;
    background: rgba(0, 198, 255, 0.2);
    border: 1px solid rgba(0, 198, 255, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: center;
}

.card-icon img {
    max-width: 160%;
    max-height: 160%;
    object-fit: contain;
}

.card h2 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-align: center;
}

.card[data-color-theme="aqua-lite"] h2 {
    text-align: center;
}

.card p {
    color: #a8b9cc;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1rem;
    flex: 1;
    text-align: center;
}

.card-button {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, #007bff, #00c6ff);
    border-radius: 25px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 2;
    font-size: 0.9rem;
    justify-content: center;
    align-items: center;
    line-height: 1;
}

.card-button::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(45deg, #00c6ff, #007bff);
    transition: 0.5s ease;
    z-index: -1;
}

.card-button:hover {
    background: linear-gradient(45deg, #00c6ff, #007bff);
    box-shadow: 0 8px 15px rgba(0, 114, 255, 0.5);
    transform: translateY(-3px);
}

.card-button:hover::before {
    width: 100%;
    left: 0;
}

/* Temaya özel renkler */
[data-color-theme="aqua"] {
    border-color: rgba(0, 198, 255, 0.2);
}

[data-color-theme="aqua"] .card-icon {
    background: rgba(0, 198, 255, 0.2);
    border-color: rgba(0, 198, 255, 0.3);
}

[data-color-theme="aqua-lite"] {
    border-color: rgba(0, 198, 255, 0.2);
}

[data-color-theme="aqua-lite"] .card-icon {
    background: rgba(0, 198, 255, 0.2);
    border-color: rgba(0, 198, 255, 0.3);
}

[data-color-theme="risk"] {
    border-color: rgba(255, 82, 82, 0.2);
}

[data-color-theme="risk"] .card-icon {
    background: rgba(255, 82, 82, 0.2);
    border-color: rgba(255, 82, 82, 0.3);
}

[data-color-theme="agri"] {
    border-color: rgba(134, 226, 134, 0.2);
}

[data-color-theme="agri"] .card-icon {
    background: rgba(134, 226, 134, 0.2);
    border-color: rgba(134, 226, 134, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobil cihazlar için (ekran genişliği 768px'den küçükse) */
@media (max-width: 768px) {
    .container {
        padding: 1rem; /* Daha da küçültüldü */
    }

    .header h1 {
        font-size: 2rem; /* Başlık boyutu küçültüldü */
    }

    .grid {
        flex-direction: column; /* Kartlar alt alta sıralanacak */
        gap: 1rem; /* Gap küçültüldü */
    }

    .card {
        width: 100%; /* Kartlar tam genişlikte olacak */
        min-width: auto; /* Minimum genişlik kaldırıldı */
        padding: 1rem; /* Padding küçültüldü */
    }

    .logo-container {
        margin-bottom: 0.5rem; /* Logo boşluğu küçültüldü */
    }

    .header-logo {
        max-width: 200px; /* Logo genişliği daha da küçültüldü */
    }

    .card h2 {
        font-size: 1.2rem; /* Kart başlığı küçültüldü */
        margin-bottom: 0.5rem;
    }

    .card p {
        font-size: 0.85rem; /* Kart metni küçültüldü */
        margin-bottom: 1rem;
    }

    .card-button {
        font-size: 0.75rem; /* Buton metni küçültüldü */
        padding: 0.5rem 1rem;
    }

    .card-icon {
        width: 60px; /* Icon boyutu daha da küçültüldü */
        height: 60px; /* Icon boyutu daha da küçültüldü */
        margin-bottom: 0.8rem;
    }
}