/* ==========================================================================
   HAKAN İÇİN HIZLI AYAR PANELİ
   ========================================================================== */
:root {
    --samurai-olcek: 2.0;           /* Logoyu büyütmek için 1.5, 1.8, 2.0 gibi artırabilirsin */
    --samurai-yukseklik: 100%;      /* Kutunun yüksekliği */
    --samurai-dikey-konum: -30px;   /* Yukarı almak için -15px, aşağı almak için 15px yazabilirsin */
    --samurai-yatay-konum: 0px;     /* Sağa/sola kaydırmak için kullanabilirsin */

    --samurai-mobil-olcek: 2;         /* TELEFON DİKEY modda samuray boyutu (1.6, 1.8, 2.0 yapabilirsin) */
    --samurai-mobil-yatay-olcek: 1.9;    /* TELEFON YATAY modda samuray boyutu */

    --purple-main: #500062;
    --grey-dark: #2e3234;
    --grey-light: #C3C3C3;
    --popup-bg: #272727;
    --off-white: #F2F0EB;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #1a1c1d;
    font-family: 'MuseoModerno', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.main-wrapper {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ================= ÜST MOR ALAN (HERO) ================= */
.hero-section {
    width: 100%;
    height: 64vh;
    background: radial-gradient(circle at 25% 50%, #63007a 0%, var(--purple-main) 65%, #3b0049 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.particles-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.wind-particle {
    position: absolute;
    background: linear-gradient(90deg, transparent, #C3C3C3, #F2F0EB, #C3C3C3, transparent);
    border-radius: 4px;
    box-shadow: 0 0 12px rgba(195, 195, 195, 0.75);
    opacity: 0;
    animation: windFloat linear infinite;
}

@keyframes windFloat {
    0% { transform: translateX(-120px) translateY(15px) rotate(-6deg); opacity: 0; }
    25% { opacity: 0.85; }
    75% { opacity: 0.85; }
    100% { transform: translateX(260px) translateY(-25px) rotate(-6deg); opacity: 0; }
}

.hero-container {
    width: 100%;
    max-width: 1480px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 6vw;
    gap: 5vw;
    position: relative;
    z-index: 2;
}

.samurai-box {
    height: var(--samurai-yukseklik);
    min-width: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: samuraiReveal 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.samurai-img {
    height: 100%;
    width: auto;
    object-fit: contain;
    transform: scale(var(--samurai-olcek)) translate(var(--samurai-yatay-konum), var(--samurai-dikey-konum));
    transform-origin: center center;
    image-rendering: -webkit-optimize-contrast;
    filter: contrast(1.06) drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55));
}

.brand-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-title {
    font-family: 'MuseoModerno', sans-serif;
    color: var(--grey-light);
    display: flex;
    flex-direction: column;
    animation: titleSlide 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.title-shinato {
    font-size: clamp(4.6rem, 7.6vw, 7.8rem);
    font-weight: 400;
    line-height: 0.96;
    letter-spacing: 1.5px;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.title-software {
    font-size: clamp(3.1rem, 5.1vw, 5.2rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: 2px;
    opacity: 0.92;
}

.brand-slogan {
    font-family: 'Michroma', sans-serif;
    font-size: clamp(1.05rem, 1.75vw, 1.72rem);
    color: var(--grey-light);
    margin-top: 2.4vh;
    min-height: 2.5rem;
    letter-spacing: 0.8px;
}

.cursor-glitch { color: #ffffff; opacity: 0.85; }
.coding-cursor {
    display: inline-block;
    margin-left: 3px;
    color: var(--grey-light);
    animation: blinkCursor 0.8s infinite;
}

.katana-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent 5%, rgba(195, 195, 195, 0.25) 30%, rgba(255, 255, 255, 0.75) 50%, rgba(195, 195, 195, 0.25) 70%, transparent 95%);
    box-shadow: 0 0 20px rgba(195, 195, 195, 0.5);
}

/* ================= ALT GRİ ALAN ================= */
.bottom-section {
    width: 100%;
    height: 36vh;
    background-color: var(--grey-dark);
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding-top: 6vh;
    padding-bottom: 2.2vh;
    position: relative;
    z-index: 1;
    animation: bottomReveal 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes bottomReveal {
    0% { opacity: 0; transform: translateY(45px); }
    100% { opacity: 1; transform: translateY(0); }
}

.button-group {
    width: 100%;
    max-width: 1420px;
    padding: 0 6vw;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin: auto 0;
}

.button-group .nav-btn:nth-child(1) { justify-self: start; }
.button-group .nav-btn:nth-child(2) { justify-self: center; }
.button-group .nav-btn:nth-child(3) { justify-self: end; }

.nav-btn {
    background: linear-gradient(145deg, #5a006e 0%, var(--purple-main) 60%, #3d004b 100%);
    color: var(--grey-light);
    font-family: 'MuseoModerno', sans-serif;
    font-weight: 400;
    border: 1px solid rgba(195, 195, 195, 0.14);
    border-radius: 30px;
    cursor: pointer;
    position: relative;
    top: 26px;
    opacity: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease, color 0.35s ease;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.btn-anim-1 { animation: buttonEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.42s forwards; }
.btn-anim-2 { animation: buttonEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards; }
.btn-anim-3 { animation: buttonEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.68s forwards; }

@keyframes buttonEnter {
    0% { opacity: 0; top: 26px; }
    100% { opacity: 1; top: 0px; }
}

.btn-side { width: 288px; height: 104px; font-size: 2.02rem; }
.btn-center { width: 296px; height: 110px; font-size: 2.1rem; border-color: rgba(195, 195, 195, 0.24); }

.btn-line {
    position: absolute;
    bottom: 14px;
    width: 32px;
    height: 3px;
    border-radius: 3px;
    background-color: rgba(195, 195, 195, 0.3);
    transition: all 0.35s ease;
}

.nav-btn:hover .btn-line {
    width: 75px;
    background-color: var(--off-white);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.14), transparent);
    transition: left 0.55s ease;
}

.nav-btn:hover::before { left: 100%; }
.nav-btn:hover {
    transform: translateY(-5px) scale(1.025);
    color: var(--off-white);
    border-color: rgba(242, 240, 235, 0.4);
    box-shadow: 0 16px 36px rgba(80, 0, 98, 0.7), 0 0 22px rgba(138, 0, 168, 0.4);
}

.status-bar {
    width: 100%;
    max-width: 1420px;
    padding: 0 6vw;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    color: rgba(195, 195, 195, 0.55);
    letter-spacing: 0.8px;
    opacity: 0;
    animation: buttonEnter 0.6s ease 0.85s forwards;
}

/* ================= POPUP (MODAL) EKRANLARI ================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(10, 10, 12, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    font-family: 'Raleway', sans-serif;
}

.modal-overlay.active { opacity: 1; visibility: visible; }

/* Yazdıkça otomatik uzayabilen ama ekranı taşmayan kutu */
.modal-box {
    width: 540px;
    min-height: 460px;
    max-height: 90vh;
    max-width: 92vw;
    background-color: var(--popup-bg);
    color: var(--off-white);
    border-radius: 28px;
    padding: 36px 34px;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 28px 65px rgba(0, 0, 0, 0.85), 0 0 40px rgba(80, 0, 98, 0.5);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), height 0.25s ease;
    overflow-y: auto;
}

.modal-overlay.active .modal-box { transform: scale(1) translateY(0); }

.modal-close {
    position: absolute;
    top: 24px;
    right: 26px;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--grey-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-close svg { display: block; transform-origin: center center; }
.modal-close:hover {
    background: var(--purple-main);
    color: var(--off-white);
    transform: rotate(90deg);
}

.modal-title {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 1.7rem;
    color: var(--off-white);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--purple-main);
}

.modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--off-white);
}

/* Demolar Listesi */
.demo-list { display: flex; flex-direction: column; gap: 14px; width: 100%; }

.demo-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background-color: #161819;
    border: 2px solid rgba(195, 195, 195, 0.18);
    border-radius: 16px;
    color: var(--off-white);
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 20px rgba(0, 0, 0, 0.45);
    transition: all 0.3s ease;
}

.demo-info { display: flex; flex-direction: column; gap: 4px; }
.demo-badge { font-size: 0.7rem; font-weight: 700; letter-spacing: 1.5px; color: #c084fc; }
.demo-name { font-weight: 700; font-size: 1.2rem; }
.demo-item:hover {
    background: linear-gradient(135deg, rgba(80, 0, 98, 0.65), rgba(50, 0, 62, 0.85));
    border-color: rgba(242, 240, 235, 0.35);
    transform: translateX(6px);
    box-shadow: 0 10px 25px rgba(80, 0, 98, 0.5);
}
.demo-arrow { font-size: 1.4rem; transition: transform 0.3s ease; }
.demo-item:hover .demo-arrow { transform: translateX(5px); }

/* ================= İLETİŞİM SEKMELERİ VE SOLUK KOPYALAMA İKONU ================= */
.contact-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    background: rgba(0, 0, 0, 0.25);
    padding: 5px;
    border-radius: 12px;
}

.tab-btn {
    flex: 1;
    padding: 9px 12px;
    border: none;
    background: transparent;
    color: var(--grey-light);
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.tab-btn.active {
    background: var(--purple-main);
    color: var(--off-white);
}

.contact-panel { display: none; animation: panelFade 0.3s ease forwards; }
.contact-panel.active { display: block; }

@keyframes panelFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.pro-contact-wrapper { display: flex; flex-direction: column; gap: 12px; width: 100%; }

.profile-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

.profile-avatar {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6b0085, var(--purple-main));
    color: var(--off-white);
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.profile-name { font-size: 1.18rem; font-weight: 700; color: var(--off-white); }
.profile-role { font-size: 0.8rem; color: var(--grey-light); opacity: 0.8; }

.contact-rows { display: flex; flex-direction: column; gap: 8px; }

.contact-row-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    color: var(--off-white);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.contact-row-item:hover {
    background: rgba(80, 0, 98, 0.28);
    border-color: rgba(195, 195, 195, 0.25);
}

.contact-row-item.copied-row {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.12);
}

.row-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(80, 0, 98, 0.45);
    border: 1px solid rgba(195, 195, 195, 0.15);
    color: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.row-content { display: flex; flex-direction: column; flex: 1; line-height: 1.25; }
.row-label { font-size: 0.68rem; color: var(--grey-light); opacity: 0.65; font-weight: 600; text-transform: uppercase; }
.row-value { font-size: 0.98rem; font-weight: 600; color: var(--off-white); }

/* Hafif Soluk Kopyalama İkonu */
.copy-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey-light);
    opacity: 0.38;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.contact-row-item:hover .copy-icon-box {
    opacity: 0.78;
}

.svg-check { display: none; }

.contact-row-item.copied-row .copy-icon-box {
    opacity: 1;
}
.contact-row-item.copied-row .svg-copy { display: none; }
.contact-row-item.copied-row .svg-check { display: block; }

/* Hızlı Mesaj Formu (Sabitlenmiş ve Yazdıkça Uzayan Textarea) */
.quick-msg-form { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.form-group { display: flex; flex-direction: column; gap: 5px; width: 100%; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--grey-light); }

.form-group input, .form-group textarea {
    width: 100%;
    max-width: 100%;
    padding: 11px 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    color: var(--off-white);
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    outline: none;
    user-select: text;
}

/* Textarea Elle Çekiştirme Kapatıldı, Yazdıkça Otomatik Uzayacak */
.form-group textarea {
    resize: none;
    min-height: 84px;
    max-height: 240px;
    overflow-y: auto;
    line-height: 1.45;
}

.form-group input:focus, .form-group textarea:focus { border-color: #9c27b0; }

.send-msg-btn {
    padding: 13px;
    background: var(--purple-main);
    color: var(--off-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
}
.send-msg-btn:hover { background: #6b0085; }
.msg-status { font-size: 0.85rem; font-weight: 600; text-align: center; min-height: 20px; }

@keyframes samuraiReveal {
    0% { opacity: 0; transform: scale(0.92); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes titleSlide {
    0% { opacity: 0; transform: translateX(25px); }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
/* ==========================================================================
   MOBİL ARAYÜZ UYARLAMASI (Her Telefon Boyutuna Otomatik Hesaplamalı)
   ========================================================================== */
@media screen and (max-width: 820px) {
    .main-wrapper {
        height: 100vh;
        height: 100dvh; /* Telefon adres çubuğunu otomatik hesaba katar */
    }

    /* Üst Mor Alan (%32 Yükseklik) */
    .hero-section {
        height: 32%;
        min-height: 175px;
    }

    .hero-container {
        padding: 0 5vw;
        gap: 4vw;
        justify-content: center;
    }

    .samurai-box {
        height: 82%;
        min-width: 105px;
    }

    .samurai-img {
        transform: scale(var(--samurai-mobil-olcek)) translateY(-8px);
    }

    .title-shinato {
        font-size: clamp(2.2rem, 9vw, 3.2rem);
        line-height: 0.98;
    }

    .title-software {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
        line-height: 1.08;
    }

    .brand-slogan {
        font-size: clamp(0.65rem, 2.7vw, 0.88rem);
        margin-top: 1vh;
        min-height: 1.5rem;
    }

    /* Alt Gri Alan (%68 Yükseklik - 3 Tuş Her Telefonda Tam Sığar) */
    .bottom-section {
        height: 68%;
        padding: 2.5vh 0 1.8vh 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .button-group {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-evenly; /* Ekran boyuna göre aralarını eşit ve açık dağıtır */
        gap: 12px;
        padding: 1vh 8vw;
        width: 100%;
        margin: 0;
    }

    .button-group .nav-btn:nth-child(1),
    .button-group .nav-btn:nth-child(2),
    .button-group .nav-btn:nth-child(3) {
        justify-self: center;
    }

    /* Çözümler ve İletişim Butonları */
    .btn-side {
        width: min(76vw, 300px);
        flex: 0 1 82px;
        height: auto;
        min-height: 62px;
        max-height: 84px;
        font-size: clamp(1.4rem, 5.2vw, 1.65rem);
        border-radius: 22px;
    }

    /* Demolar Butonu (1-2px Daha Büyük ve Simetrik) */
    .btn-center {
        width: min(78vw, 306px);
        flex: 0 1 86px;
        height: auto;
        min-height: 66px;
        max-height: 88px;
        font-size: clamp(1.46rem, 5.5vw, 1.72rem);
        border-radius: 22px;
    }

    .status-bar {
        padding-top: 4px;
        flex-shrink: 0;
    }

    /* Mobil Popup (Modal) Boyutları */
    .modal-box {
        width: 92vw;
        min-height: auto;
        max-height: 86dvh;
        padding: 26px 20px;
        border-radius: 22px;
    }

    .modal-title {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }

    .modal-close {
        top: 18px;
        right: 18px;
        width: 34px;
        height: 34px;
    }

    .profile-name { font-size: 1.05rem; }
    .row-value { font-size: 0.88rem; }
}

/* ==========================================================================
   TELEFON YATAY MOD (Kısa ekran: 3 tuş yan yana, hepsi ekran yüksekliğine göre)
   Telefon yan tutulunca genişlik 820px'i geçse bile burası devreye girer.
   ========================================================================== */
@media screen and (orientation: landscape) and (max-height: 520px) {
    .main-wrapper {
        height: 100vh;
        height: 100dvh;
    }

    /* Üst Mor Alan */
    .hero-section {
        height: 56%;
        min-height: 0;
    }

    .hero-container {
        padding: 0 5vw;
        gap: 4vw;
        justify-content: center;
    }

    .samurai-box {
        height: 92%;
        min-width: 140px;
    }

    .samurai-img {
        transform: scale(var(--samurai-mobil-yatay-olcek)) translateY(-6px);
    }

    .title-shinato {
        font-size: clamp(2.4rem, 15vh, 4.8rem);
        line-height: 0.98;
    }

    .title-software {
        font-size: clamp(1.6rem, 10vh, 3.2rem);
        line-height: 1.08;
    }

    .brand-slogan {
        font-size: clamp(0.7rem, 3.4vh, 1.05rem);
        margin-top: 1vh;
        min-height: 1.4rem;
    }

    /* Alt Gri Alan: 3 tuş tek satırda, yüksekliğe göre ölçeklenir */
    .bottom-section {
        height: 44%;
        padding: 1.5vh 0 1vh 0;
        justify-content: space-between;
    }

    .button-group {
        flex: 1;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 2.5vw;
        padding: 0 4vw;
        width: 100%;
        margin: 0;
    }

    .button-group .nav-btn:nth-child(1),
    .button-group .nav-btn:nth-child(2),
    .button-group .nav-btn:nth-child(3) {
        justify-self: center;
    }

    .btn-side,
    .btn-center {
        width: 27vw;
        max-width: 280px;
        flex: 0 0 auto;
        height: clamp(54px, 19vh, 92px);
        min-height: 0;
        max-height: none;
        font-size: clamp(1.2rem, 5.6vh, 1.9rem);
        border-radius: 20px;
    }

    .btn-line {
        bottom: 8px;
    }

    .status-bar {
        padding-top: 2px;
        flex-shrink: 0;
        font-size: 0.75rem;
    }

    /* Yatay modda popup kısa ekrana sığsın */
    .modal-box {
        min-height: auto;
        max-height: 92dvh;
        padding: 20px 22px;
    }
}