html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* --- MODERN HERO SLIDER --- */
.hero-section {
    position: relative;
    padding: 20px 0;
}

.modern-slider {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    height: 500px; /* Sabit yükseklik, tüm ekranı kaplamaz */
}

.carousel-item {
    height: 500px;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7); /* Yazıların okunması için hafif karartma */
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 2rem;
    bottom: 20%;
}

/* --- DETAY KARTLARI (GLASSMORPHISM) --- */
.feature-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--bs-primary);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--bs-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 1.5rem;
}

/* --- YÜZEN TELEGRAM BUTONU --- */
.floating-telegram {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #0088cc; /* Telegram Rengi */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 136, 204, 0.4);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.floating-telegram:hover {
    transform: scale(1.1) rotate(10deg);
    color: white;
    box-shadow: 0 10px 25px rgba(0, 136, 204, 0.6);
}

.floating-telegram i, .floating-telegram svg {
    font-size: 30px;
    fill: white;
}

/* Telegram Pulse Animasyonu */
.floating-telegram::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #0088cc;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.7;
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* --- FOOTER LİNKLERİ --- */
.footer-legal-links a {
    color: #6c757d;
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-legal-links a:hover {
    color: var(--bs-primary);
}

/* --- MODERN LOGO TASARIMI --- */
.navbar-brand-logo {
    height: 55px; /* Standart 40px yerine 55px yaparak büyüttük */
    width: auto;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Logoyu canlandıran sihirli dokunuş: Hafif gölge */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); 
}

/* Üzerine gelince hafifçe büyüsün ve parlasın */
.navbar-brand:hover .navbar-brand-logo {
    transform: scale(1.08);
    filter: drop-shadow(0 4px 8px rgba(37, 99, 235, 0.2)); /* Marka renginde hafif parlama */
}

/* Mobilde çok yer kaplamasın diye hafif küçültelim */
@media (max-width: 576px) {
    .navbar-brand-logo {
        height: 45px;
    }
}

/* --- DARK MODE ZORLAMALARI --- */

/* Tüm site genelinde arka planı koyu yap */
body {
    background-color: #0f172a !important;
    color: #f8fafc !important;
}

/* Bootstrap Card'ların beyaz olmasını engelle */
.card {
    background-color: #1e293b; /* Koyu Gri/Mavi */
    border: 1px solid rgba(255,255,255,0.05);
    color: #fff;
}

/* Card Header ve Footer'ları uyumlu yap */
.card-header {
    background-color: rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.card-footer {
    background-color: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Form elemanlarını (Input) koyu yap */
.form-control, .form-select {
    background-color: #0f172a;
    border: 1px solid #334155;
    color: #fff;
}

.form-control:focus, .form-select:focus {
    background-color: #0f172a;
    border-color: #3b82f6;
    color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

/* Input placeholder rengini düzelt */
::placeholder {
    color: #64748b !important;
}