:root {
    --bg-color: #020202;
    --card-bg: rgba(15, 15, 15, 0.85);
    /* Kartlar biraz daha koyu */
    --accent-pink: #ff66c4;
    --accent-green: #00ff88;
    /* Yeni: Yeşil ışık rengi */
    --text-main: #ffffff;
    --text-dim: #888888;
    --border-color: rgba(255, 102, 196, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Sayfanın en altına tatlı bir siyah geçiş (Footer'ın boşlukta durmaması için) */
body::after {
    content: "";
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, #020202 20%, transparent);
    z-index: -1;
    pointer-events: none;
}

/* Arka Plan Görseli */
.hero-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -2;
    opacity: 0.35;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
}

/* Ana Grid Yapısı */
.bento-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Satırlar içeriğe göre otomatik uzasın */
    grid-auto-rows: minmax(180px, auto);
    gap: 24px;
    /* Kartlar arası boşluk */
    max-width: 1100px;
    margin: 80px auto 40px auto;
    padding: 20px;
}

/* Kartların Genel Tasarımı */
.grid-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 35px;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.grid-item:hover {
    transform: scale(1.015);
    border-color: var(--accent-pink);
    box-shadow: 0 10px 40px rgba(255, 102, 196, 0.15);
}

/* Glitch Efekti (Texture) */
.glitch-texture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* CSS klasöründen çıkıp images'a gitmek için ../ kullanıyoruz */
    background-image: url('../images/effect-glitch-texture.jpeg');
    background-size: cover;
    opacity: 0;
    mix-blend-mode: overlay;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.grid-item:hover .glitch-texture-overlay {
    opacity: 0.25;
}

/* Kutu Boyutları */
.item-large {
    grid-column: span 3;
}

/* Header */
.item-medium {
    grid-column: span 2;
}

/* Tech, Ekosistem, İletişim */
.item-small {
    grid-column: span 1;
}

/* Eski */
.item-full {
    grid-column: span 4;
}

/* Footer */

/* --- Header --- */
.header-box {
    align-items: flex-start;
    justify-content: center;
}

.main-logo {
    width: 70px;
    margin-bottom: 20px;
    border-radius: 16px;
}

h1 {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 1;
}

.tagline {
    color: var(--text-dim);
    margin-top: 15px;
    font-size: 1.1rem;
}

/* --- Tech Box --- */
.tech-box {
    justify-content: flex-start !important;
    /* Yazı yukarıda olsun */
    padding-top: 40px;
    /* Üstten biraz boşluk */
    text-align: center;
    /* Yazıyı ortala */
}

.tech-img {
    position: absolute;
    right: -30px;
    bottom: -30px;
    width: 240px;
    opacity: 0.4;
    transition: opacity 0.3s;
}

/* Mouse üzerine gelince efekt */
.tech-box:hover .rider-mode {
    transform: scale(1.05) translate(0, -10px);
    /* Sadece yukarı hareket, sağa sola kaymasın */
    filter: drop-shadow(0 0 25px rgba(255, 102, 196, 0.4));
}

/* Yazının görselin üzerinde net okunması için */
.tech-box .box-content {
    position: relative;
    z-index: 5;
    /* Yazı her zaman görselin üstünde */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    /* Arkada görsel olsa bile okunur */
    max-width: 100%;
    /* Tüm genişliği kullansın */
    margin: 0 auto;
}

/* --- Ekosistem (Link Listesi) --- */
/* İki kolonlu yapı */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    margin-top: 20px;
    list-style: none;
    width: 100%;
}

.project-list li {
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.project-list li a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.project-list li:hover a {
    color: var(--accent-pink);
}

/* --- AKTİF MODÜLLER DÜZENİ --- */

.module-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Satırlar arası boşluk */
    margin-top: 20px;
}

.module-row {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    /* Çok hafif arka plan */
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.module-row:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 102, 196, 0.3);
    transform: translateX(5px);
    /* Üzerine gelince hafif sağa kaysın */
}

/* Linkler */
.module-row a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
    /* Linkler kırılmasın */
}

.module-row a:hover {
    color: var(--accent-pink);
    text-shadow: 0 0 8px rgba(255, 102, 196, 0.5);
}

/* Ana Link (BVS Doctors gibi) biraz daha kalın olsun */
.main-link {
    font-weight: 700 !important;
    letter-spacing: 0.5px;
}

/* Ayraçlar ( | / ↔ ) */
.separator {
    color: var(--text-dim);
    margin: 0 10px;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Politik Grup gibi çoklu satırlar için özel ayar */
.multi-line {
    align-items: flex-start;
    /* Mobilde hizalama bozulmasın */
}

.link-group {
    display: flex;
    flex-wrap: wrap;
    /* Sığmazsa alt satıra geçsin */
    align-items: center;
    line-height: 1.8;
}

/* Status Işıkları */
.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    margin-right: 15px;
    /* Işık ile yazı arası */
    box-shadow: 0 0 8px var(--accent-green);
    flex-shrink: 0;
}

/* MAARS için Turuncu/Amber Uyarı Işığı (Farklılık katar) */
.status-dot.warning {
    background-color: #ffaa00;
    box-shadow: 0 0 8px #ffaa00;
}

/* --- İletişim --- */
.contact-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mini-mascot {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.text-group {
    display: flex;
    flex-direction: column;
}

.email-link {
    background: transparent;
    border: none;
    color: var(--accent-pink);

    font-family: 'Inter', sans-serif;
    /* Kod fontu yerine düz font */
    font-weight: 700;
    /* Kalın */
    font-size: 1.25rem;
    /* Biraz daha büyük */
    letter-spacing: 0.5px;

    cursor: pointer;
    text-align: left;
    padding: 5px 0;
}

.copy-hint {
    margin-top: 5px;
    font-size: 0.7rem;
    opacity: 0.6;
    color: var(--text-dim);
}

/* --- Footer --- */
.footer-box {
    background: transparent;
    border: none;
    text-align: center;
    margin-top: 20px;
    backdrop-filter: none;
}

.footer-box:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.engine-text {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--text-dim);
    font-weight: 700;
    margin-bottom: 5px;
}

.brand-text {
    font-weight: 700;
    color: var(--accent-pink);
    font-size: 1rem;
}

.year-text {
    display: block;
    font-size: 0.7rem;
    color: #444;
    margin-top: 15px;
}

/* Mobil Uyumluluk */
@media (max-width: 900px) {
    .bento-wrapper {
        grid-template-columns: 1fr;
    }

    .item-large,
    .item-medium,
    .item-small,
    .item-full {
        grid-column: span 1;
    }

    .two-columns {
        grid-template-columns: 1fr;
    }

    /* Mobilde tek sütun olsun */
    h1 {
        font-size: 2.5rem;
    }

    .tech-img {
        width: 180px;
    }
}

/* Vercel Toolbar'ı Gizle */
vercel-live-feedback {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* --- Kaptan Görseli Ayarı --- */
/* --- GÜNCELLENMİŞ KAPTAN GÖRSELİ (DEVASA MOD) --- */

.rider-mode {
    width: 580px !important;
    /* Görseli DEVASA yaptık */
    max-width: none;
    /* Sınırlamayı kaldırdık */
    opacity: 0.9 !important;
    /* Daha parlak */

    /* Konumlandırma: ORTALIYORUZ (Sola çek + Margin Auto benzeri mantık) */
    right: auto !important;
    left: 50% !important;
    margin-left: -290px !important;
    /* Genişliğin (580px) yarısı kadar sola çek */

    bottom: -90px !important;

    /* Görselin yazının altında kalmasını sağlar (Katman ayarı) */
    z-index: 1;

    /* Maskeleme: Alt kısmı yumuşakça yok olsun */
    mask-image: linear-gradient(to top, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, black 50%, transparent 100%);

    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- Highlight Text --- */
/* Core Vision içindeki vurgulu söz */
.highlight-text {
    display: block;
    margin-top: 10px;
    font-weight: 700;
    color: var(--text-main);
    border-left: 3px solid var(--accent-pink);
    padding-left: 10px;
    font-style: italic;
    opacity: 0.9;
}

/* --- SES MODÜLÜ (MUSIC BOX) --- */

.music-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-color: rgba(0, 255, 136, 0.3);
    /* Hafif yeşil sınır */
}

.music-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

/* Yanıp sönen yeşil "Play" ışığı */
.music-dot {
    background-color: #00ff88;
    box-shadow: 0 0 10px #00ff88;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

.spotify-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Yanıp sönen yeşil "Play" ışığı */
.music-dot {
    background-color: #00ff88;
    box-shadow: 0 0 10px #00ff88;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

.spotify-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Mouse üzerine gelince player parlasın */
.music-box:hover .spotify-wrapper {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
    transform: translateY(-2px);
}

/* --- YENİ EKLENEN STİLLER (Pending & Passive) --- */

/* Gri Işık (Henüz aktif değil) */
.status-dot.pending {
    background-color: #444;
    /* Sönük gri */
    box-shadow: none;
    /* Parlama efektini kapattık */
    border: 1px solid #666;
}

/* Tıklanmayan Yazı */
.passive-link {
    color: var(--text-dim);
    /* Sönük yazı rengi */
    font-size: 0.9rem;
    font-weight: 500;
    cursor: default;
    /* Tıklama işareti çıkmasın */
    font-style: italic;
    /* Hafif yatık olsun ki farklı dursun */
}

/* --- HARİCİ AĞLAR (EXTERNAL NODES) --- */

.external-nodes-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Başlık solda, linkler sağda */
    padding: 25px 40px;
    /* Diğer kutulardan biraz daha ince */
    min-height: auto;
    /* Yüksekliği içeriğe göre ayarla */
    border-color: rgba(0, 204, 255, 0.3);
    /* Mavi sınır */
}

.external-header {
    display: flex;
    align-items: center;
}

.external-header h3 {
    margin: 0;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* Cyan (Camgöbeği) Işık */
.external-dot {
    width: 8px;
    height: 8px;
    background-color: #00ccff;
    border-radius: 50%;
    margin-right: 15px;
    box-shadow: 0 0 10px #00ccff;
    flex-shrink: 0;
}

.external-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.external-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.external-links a:hover {
    color: #00ccff;
    /* Üzerine gelince mavi olsun */
    text-shadow: 0 0 8px rgba(0, 204, 255, 0.6);
}

.tech-separator {
    color: var(--text-dim);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Mobil Uyumluluk: Mobilde alt alta gelsinler */
@media (max-width: 900px) {
    .external-nodes-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .external-links {
        width: 100%;
        justify-content: space-between;
        /* Linkleri yay */
    }
}