/* =========================
   1. TEMEL AYARLAR
========================= */
* {
    box-sizing: border-box;
}

body {
    background: linear-gradient(270deg, #000000, #1a1a1a, #000000, #333333);
    background-size: 400% 400%;
    animation: WhitePulse 20s ease-in-out infinite;
    min-height: 100vh;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #ffffff;
    overflow-x: hidden;
}

@keyframes WhitePulse {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* =========================
   2. NAVBAR
========================= */
.navbar {
    background-color: #000;
    width: 100%;
    height: 80px;
    padding: 0 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 9999;
    border-bottom: 1px solid #333;
}

.navLogo {
    font-size: 1.5rem;
    font-weight: 900;
}

.navlink ul {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navlink ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: color 0.3s;
}

.navlink ul li a:hover {
    color: #e0e0e0;
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/* =========================
   3. HERO ALANI
========================= */
.middle-left-area {
    padding-top: 150px;
    padding-left: 10%;
}

.main-name {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    letter-spacing: -2px;
    margin: 0;
}

.sub-text-wrapper {
    margin-top: 15px;
    font-size: 1.6rem;
    font-family: "Courier New", monospace;
}

.resimkapsayici {
    display: flex;
    justify-content: flex-end;
    padding-right: 10%;
    margin-top: -60px;
}

.resim {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #333;
    transition: 0.4s;
}

.resim img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resim:hover {
    border-color: #888;
    transform: scale(1.05);
}

/* =========================
   4. HAKKIMDA
========================= */
.HakkımdaKapsayıcı {
    margin-top: 100px;
    padding: 70px 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    border-top: 1px solid #333;
}

.HakkımdaBaşlık {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.hakımdayazı {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.7;
    color: #cccccc;
}

/* =========================
   5. PROJELER (KARTLAR)
========================= */
.kartkapsayıcı {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 80px 20px;
}

.kart {
    width: 280px;
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid #333;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: 0.4s;
}

.kart:hover {
    transform: translateY(-12px);
    border-color: #555;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.kartimg {
    width: 100%;
    height: 200px;
    /* ihtiyaca göre */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.kartimg img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


.kartBaşlık {
    margin: 15px 0;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
}

.kartyazı {
    font-size: 0.9rem;
    color: #ccc;
    text-align: center;
    margin-bottom: 20px;
    flex-grow: 1;
}



/* === KART BUTONU (UX DÜZELTİLDİ) === */
.kartbutton {
    width: 140px;
    height: 42px;
    margin: 0 auto;
    background: #fff;
    border-radius: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}

.kartbutton:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.kartbutton a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
}

/* =========================
   6. İLETİŞİM
========================= */
.IletisimKapsayıcı {
    padding: 50px 20px;
    background: #000;
    border-top: 1px solid #333;
    text-align: center;

}

.SosyalMedya {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    align-items: center;
    overflow: hidden;

}

.SosyalLink {
    text-decoration: none;
    color: #fff;
    padding: 12px 26px;
    border-radius: 30px;
    border: 1px solid #444;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    width: 150px;
    /* Sabit genişlik */
    height: 40px;
    /* Sabit yükseklik */
    display: flex;
    align-items: center;
    justify-content: center;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.HakkımdaBaşlık {
    margin: 0px;
    margin-bottom: 20px;
}

.SosyalLink:hover {
    background: #fff;
    color: #000;
    transform: scale(1.05);
}


.SosyalLink:hover i {
    color: #000;
}

/* =========================
   7. MOBİL
========================= */
@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }

    .hamburger {
        display: block;
    }

    .navlink {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: #000;
        display: flex;
        justify-content: center;
        padding-top: 50px;
        transition: 0.4s;
    }

    .navlink.active {
        right: 0;
    }

    .navlink ul {
        flex-direction: column;
        gap: 30px;
    }

    .resimkapsayici {
        justify-content: center;
        padding-right: 0;
        margin-top: 30px;
    }

    .resim {
        width: 250px;
        height: 250px;
    }
}

.navlink ul li a.active {
    color: #ffffff;
    position: relative;
}

.navlink ul li a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: #ffffff;
}

/* İletişim Formu Genel Alanı */
.iletisim-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 30px auto;
    background: rgba(255, 255, 255, 0.05);
    /* Şeffaf koyu arka plan */
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Giriş Alanları (Input ve Textarea) */
.iletisim-form input,
.iletisim-form textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

/* Input Odaklandığında (Focus) */
.iletisim-form input:focus,
.iletisim-form textarea:focus {
    border-color: #74C0FC;
    /* Dondurmacı sitesindeki o şık mavi */
    box-shadow: 0 0 10px rgba(116, 192, 252, 0.3);
}

/* Mesaj Kutusu Yüksekliği */
.iletisim-form textarea {
    height: 150px;
    resize: none;
    /* Kullanıcının kutuyu sağa sola çekiştirmesini engeller */
}

/* Gönder Butonu */
.gonder-btn {
    background: linear-gradient(135deg, #74C0FC, #4dabf7);
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gonder-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(116, 192, 252, 0.4);
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .iletisim-form {
        margin: 20px 10px;
        padding: 20px;
    }
}

.g-recaptcha {
    display: flex;
    justify-content: center;
    /* Ortalar */
    margin: 15px 0;
}

/* =========================
   8. AI CHATBOT
========================= */

#chatWidget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

#chatToggleBtn {
    width: 60px;
    height: 60px;
    border-radius: 50px;
    background: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        border-radius 0.4s ease,
        box-shadow 0.3s ease;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
    white-space: nowrap;
    gap: 6px;
}

/* Chat açıkken pill şekli */
#chatToggleBtn.open {
    width: 370px;
    height: 36px;
    border-radius: 18px;
    font-size: 0.9rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

#chatToggleBtn:hover {
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5);
}

#chatToggleBtn:not(.open):hover {
    transform: scale(1.1);
}

#chatToggleBtn.open:hover {
    filter: brightness(1.1);
}

/* Ok yazısı - sadece açıkken görünür */
#chatToggleBtn .btn-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #000;
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: opacity 0.3s ease 0.15s, width 0.3s ease;
}

#chatToggleBtn.open .btn-label {
    opacity: 1;
    width: auto;
}

.chat-badge {
    position: absolute;
    bottom: 42px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: #ff3333;
    border-radius: 50%;
    border: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: #fff;
    font-weight: 700;
    animation: badgePulse 1.8s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(255, 51, 51, 0.7);
    z-index: 10;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-badge.hidden {
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
    animation: none;
}

@keyframes badgePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 51, 51, 0.6);
    }

    60% {
        box-shadow: 0 0 0 7px rgba(255, 51, 51, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 51, 51, 0);
    }
}

#chatWindow {
    width: 370px;
    height: 580px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(18px);
    border: 1px solid #333;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#chatWindow.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.chat-header {
    padding: 16px 20px;
    background: #111;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.chat-header-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #000;
    flex-shrink: 0;
}

.chat-header-info {
    flex: 1;
    min-width: 0;
}

.chat-header-info h4 {
    margin: 0;
    font-size: 0.95rem;
    color: #fff;
    font-weight: 700;
}

.chat-header-info p {
    margin: 2px 0 0;
    font-size: 0.72rem;
    color: #aaa;
}

.chat-header-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #aaa;
    box-shadow: none;
    flex-shrink: 0;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

#chatMessages {
    flex: 1;
    overflow-y: auto;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
    min-height: 0;
}

#chatMessages::-webkit-scrollbar {
    width: 4px;
}

#chatMessages::-webkit-scrollbar-track {
    background: transparent;
}

#chatMessages::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.chat-message {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    max-width: 88%;
    animation: msgFadeIn 0.25s ease;
}

@keyframes msgFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.bot-message {
    align-self: flex-start;
}

.message-bubble {
    padding: 9px 13px;
    border-radius: 16px;
    font-size: 0.82rem;
    line-height: 1.55;
    word-break: break-word;
    max-width: 100%;
}

.user-message .message-bubble {
    background: linear-gradient(135deg, #0044cc, #003399);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.bot-message .message-bubble {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid #2e2e2e;
    color: #e8e8e8;
    border-bottom-left-radius: 4px;
}

.bot-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #000;
    flex-shrink: 0;
}

#typingIndicator {
    display: none;
    align-items: flex-end;
    gap: 8px;
    align-self: flex-start;
    animation: msgFadeIn 0.25s ease;
}

.typing-bubble {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid #2e2e2e;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    padding: 12px 16px;
    display: flex;
    gap: 5px;
    align-items: center;
}

.typing-bubble span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #aaa;
    display: inline-block;
    animation: typingBounce 1.2s ease-in-out infinite;
}

.typing-bubble span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-bubble span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

/* ============================================================
   Hazır Soru Butonları Alanı
   ============================================================ */

/* Genişleşmiş (başlangıç) durumu */
.quick-questions {
    padding: 12px 12px;
    border-top: 1px solid #2a2a2a;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
    transition: padding 0.4s ease, gap 0.4s ease;
}

.quick-questions-label {
    margin: 0 0 4px 0;
    font-size: 0.7rem;
    color: #777;
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: font-size 0.3s ease, margin 0.3s ease;
}

/* Geniş hap butonlar — başlangıçta */
.quick-btn {
    width: 100%;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid #2e2e2e;
    border-radius: 30px;
    color: #ccc;
    font-size: 0.82rem;
    font-family: inherit;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s,
        padding 0.4s ease, font-size 0.4s ease, border-radius 0.4s ease,
        transform 0.15s;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quick-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: #555;
    color: #fff;
    transform: scale(1.02);
}

.quick-btn:active:not(:disabled) {
    transform: scale(0.97);
}

.quick-btn:disabled {
    cursor: not-allowed;
}

/* Daraltılmış — ilk mesaj sonrası */
.quick-questions.compact {
    padding: 8px 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.quick-questions.compact .quick-questions-label {
    grid-column: 1 / -1;
    font-size: 0.65rem;
    margin: 0 0 2px 0;
}

.quick-questions.compact .quick-btn {
    padding: 6px 10px;
    font-size: 0.73rem;
    border-radius: 10px;
    text-align: center;
}

/* Tek kalan 5. buton tam genişliğe */
.quick-questions.compact .quick-btn:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

@media (max-width: 480px) {
    #chatWindow {
        width: calc(100vw - 24px);
        height: 72vh;
    }

    #chatWidget {
        bottom: 20px;
        right: 12px;
    }

    .quick-questions.compact {
        grid-template-columns: 1fr;
    }

    #chatToggleBtn.open {
        width: calc(100vw - 24px);
    }
}