/* LOCH GAMES WEBSITE */

:root {
    --bg-primary:    #111827;       /* Koyu arka plan – PowerPoint ana rengi */
    --bg-secondary:  #1a1f2e;       /* Kartlar ve modal için hafif açık */
    --accent-purple: #a03dbe;       /* Ana vurgu – mor, joystick moruyla uyumlu */
    --text-primary:  #f1f6fc;       /* Ana metin rengi – açık beyaz-gri */
    --text-muted:    #a0aec0;       /* İkincil metinler */
    --border:        rgba(143, 30, 174, 0.15);  /* Mor tonlu ince border */
    --glass:         rgba(143, 30, 174, 0.08);  /* Hafif mor cam efekti */
    --transition:    all 0.35s ease;
    --pixel-font:    'Press Start 2P', cursive;
}

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

html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 15% 20%, rgba(143,30,174,0.12), transparent 50%),
                radial-gradient(circle at 85% 80%, rgba(143,30,174,0.08), transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ── NAVIGATION ── */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 0.5rem 5%; /* Üst ve alt boşluğu azalttık, logoya yer açtık */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(17,24,39,0.92);  /* #111827 opak varyasyon */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px; /* 50px'den 70px'e çıkardık */
    transition: transform var(--transition); /* transition-fast yerine var olan değişkeni kullandık */
    text-decoration: none;
}

.logo img {
    height: 85px; /* Boyutu belirgin şekilde artırdık */
    width: auto;
    max-width: 280px;
    display: block;
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 2.2rem;
    list-style: none;
}

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-menu a:hover { color: var(--accent-purple); text-shadow: 0 0 12px var(--accent-purple); }

/* Mobile Nav (hamburger + drawer) */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-toggle .hamburger {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
    transition: all 220ms ease;
}

.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
    content: "";
    position: absolute;
    left: 0;
    width: 26px;
    height: 2px;
    background: var(--text-primary);
    transition: all 220ms ease;
}

.nav-toggle .hamburger::before { top: -8px; }
.nav-toggle .hamburger::after { top: 8px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-drawer {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(17,24,39,0.98);
    border-bottom: 1px solid var(--border);
    transform-origin: top center;
    transform: translateY(-12px) scaleY(0.98);
    opacity: 0;
    pointer-events: none;
    transition: transform 260ms ease, opacity 220ms ease;
    z-index: 1000;
}

.mobile-drawer.open {
    transform: translateY(0) scaleY(1);
    opacity: 1;
    pointer-events: auto;
}

.mobile-drawer ul {
    list-style: none;
    padding: 12px 18px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-drawer a {
    color: var(--text-primary);
    text-decoration: none;
    padding: 12px 8px;
    border-radius: 8px;
    font-weight: 700;
}

.mobile-drawer a:hover { background: var(--glass); color: var(--accent-purple); }

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .nav-toggle { display: flex; }
}

/* ── HERO ── */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Devasa Ana Logo ve Süzülme Animasyonu */
.hero-main-logo {
    max-width: 420px;
    width: 85%;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 25px rgba(143, 30, 174, 0.5));
    animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); filter: drop-shadow(0 0 35px rgba(143, 30, 174, 0.8)); }
    100% { transform: translateY(0px); }
}

/* Logonun Altındaki Slogan */
.hero-slogan {
    font-family: var(--pixel-font);
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    color: var(--text-primary);
    letter-spacing: 2px;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    text-shadow: 0 0 10px rgba(143, 30, 174, 0.4);
    text-transform: uppercase;
}

/* Aksiyon Butonu (Aynı kaldı) */
.cta-btn {
    padding: 1rem 2.2rem;
    background: linear-gradient(135deg, var(--accent-purple), #c084fc);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-family: var(--pixel-font);
    font-size: 0.95rem;
    box-shadow: 0 0 20px rgba(143,30,174,0.4);
    transition: var(--transition);
    display: inline-block;
}

.cta-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 0 30px rgba(143,30,174,0.6);
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .hero-main-logo { max-width: 300px; }
}
/* Particles */
.particles-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent-purple);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--accent-purple);
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(100vh); opacity: 0; }
    10% { opacity: 0.9; }
    90% { opacity: 0.9; }
    100% { transform: translateY(-10vh); opacity: 0; }
}

/* ── SECTIONS ── */
section { padding: 7rem 0; }

.section-title {
    font-family: var(--pixel-font);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    text-align: center;
    margin-bottom: 3rem;
    color: #c084fc;
    text-shadow: 0 0 12px rgba(143,30,174,0.4);
}

/* --- ABOUT US FEATURES --- */
.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.feature-box {
    background: rgba(17, 24, 39, 0.5); /* Karttan biraz daha koyu */
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
}

.feature-box:hover {
    border-color: var(--accent-purple);
    transform: translateY(-5px);
    background: var(--glass);
}

.feature-box i {
    font-size: 2rem;
    color: #c084fc;
    margin-bottom: 1rem;
}

.feature-box h3 {
    font-family: var(--pixel-font);
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.feature-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- PARALLAX DIVIDER --- */
.parallax-divider {
    height: 400px; /* Biraz daha hacimli dursun */
    width: 100%;
    background-image: linear-gradient(rgba(17,24,39,0.6), rgba(17,24,39,0.6)), url('assets/img/games/KadimSakura/KadimSakura.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    margin: 4rem 0;
    /* Kenar çizgilerini kaldırıp, karanlığa erime efekti veriyoruz: */
    border: none;
    box-shadow: inset 0 50px 50px var(--bg-primary), 
                inset 0 -50px 50px var(--bg-primary);
}

@media (max-width: 768px) {
    .parallax-divider {
        background-attachment: scroll; /* Mobilde performansı korumak için parallax kapatılır */
        height: 150px;
    }
}

/* Games */

#games {
    position: relative;
    /* Resmi tüm Games bölümünün arkasına gömüyoruz, koyu bir filtreyle */
    background-image: linear-gradient(rgba(17,24,39,0.92), rgba(17,24,39,0.92)), url('assets/img/games/KadimSakura/KadimSakura.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.game-card {
    background: var(--glass);
    border: 2px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-purple);
    box-shadow: 0 12px 30px rgba(143,30,174,0.2);
}

.game-img img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.game-card:hover img { transform: scale(1.08); }

.game-info { padding: 1.4rem; }

.game-btn {
    padding: 0.8rem 1.6rem;
    background: linear-gradient(135deg, #e879f9, var(--accent-purple));
    color: white;
    border: none;
    border-radius: 8px;
    font-family: var(--pixel-font);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.game-btn:hover { transform: scale(1.05); }

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.team-card {
    background: var(--glass);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    border-color: var(--accent-purple);
    transform: translateY(-6px);
}

.icon { font-size: 3.2rem; margin-bottom: 1rem; }

.avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 3px solid var(--accent-purple);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* ── TEAM SOCIAL ICONS ── */
.team-social {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border); /* İkonlarla yazıyı ayıran şık, ince bir çizgi */
}

.team-social a {
    color: var(--text-muted);
    font-size: 1.3rem;
    transition: var(--transition);
}

.team-social a:hover {
    color: var(--accent-purple);
    transform: translateY(-3px) scale(1.1); /* Yukarı doğru tatlı bir sıçrama efekti */
    filter: drop-shadow(0 0 8px rgba(143, 30, 174, 0.5));
}

/* ── CONTACT FORM ── */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--glass);
    padding: 3rem;
    border-radius: 12px;
    border: 2px solid var(--border);
    text-align: center;
}

.contact-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: rgba(17, 24, 39, 0.7);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(160, 174, 192, 0.6); /* Hafif silik placeholder */
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 15px rgba(143, 30, 174, 0.3);
}

.contact-form textarea {
    resize: vertical; /* Sadece dikeyde büyütülebilsin */
}

.contact-form .cta-btn {
    border: none;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Direct Email Linki Stili */
.direct-email a {
    color: #c084fc; /* Logonun ve sitenin tatlı mor tonu */
    text-decoration: none; /* Varsayılan alt çizgiyi kaldırır */
    transition: var(--transition);
}

.direct-email a:hover {
    color: var(--accent-purple); /* Üzerine gelince biraz daha koyu/parlak mor olur */
    text-decoration: underline; /* Üzerine gelince tıklandığı belli olsun diye altını çizer */
}

@media (max-width: 768px) {
    .contact-wrapper {
        padding: 2rem 1.5rem;
    }
}

/* Footer */

footer {
    padding: 4rem 5% 2.5rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.7rem;
    transition: var(--transition);
}

.social-links a:hover { color: var(--accent-purple); transform: scale(1.2); }

/* ── MODAL (YENİLENMİŞ) ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    place-items: center;
    z-index: 2000;
    padding: 1.5rem;
}

.modal-overlay.active { display: grid; }

.modal-content {
    background: var(--bg-primary);
    border: 1px solid var(--accent-purple);
    box-shadow: 0 15px 50px rgba(143, 30, 174, 0.3);
    border-radius: 16px;
    max-width: 850px;
    width: 100%;
    position: relative;
    overflow: hidden;
    animation: modalFadeIn 0.35s ease-out forwards;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 1.8rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover { background: var(--accent-purple); transform: rotate(90deg); }

.modal-body {
    display: flex;
    flex-direction: row;
    gap: 2.5rem;
    padding: 2.5rem;
    align-items: center;
}

.modal-img-container {
    flex: 1;
    max-width: 45%;
}

.modal-img-container img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    object-fit: cover;
}

.modal-text { 
    flex: 1; 
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#modalTitle {
    font-family: var(--pixel-font);
    font-size: 1.8rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.modal-platforms-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem; /* Kutucuklar arasındaki boşluk */
    margin-bottom: 0.5rem;
}

.modal-badge {
    background: var(--glass);
    color: #c084fc;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border);
}

#modalLongDesc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.modal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 1rem;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .modal-body { flex-direction: column; padding: 2rem; }
    .modal-img-container { max-width: 100%; }
    #modalTitle { font-size: 1.5rem; }
}

.secondary-btn {
    padding: 0.9rem 1.8rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--pixel-font);
    font-size: 0.85rem;
    transition: var(--transition);
}

.secondary-btn:hover { border-color: #c084fc; background: var(--glass); }

/* ── RESPONSIVE & UTILS ── */
@media (max-width: 768px) {
    .modal-body { flex-direction: column; }
    section { padding: 5rem 0; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.4rem; }
    .mobile-nav { padding: 0.8rem 1.4rem; gap: 2rem; }
    .mobile-nav a { font-size: 1.6rem; }
}

.cursor-glow {
    position: fixed;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(143,30,174,0.13) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    transition: opacity 0.4s;
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-purple); border-radius: 10px; }