/* ---- CORE VARIABLES ---- */
:root {
    --bg-color: #000000;
    --text-primary: #FFFFFF;
    --text-secondary: #888888;
    --accent: #FFFFFF;
    --border-color: rgba(255, 255, 255, 0.1);
    --nav-height: 90px;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-normal: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ---- RESET & GLOBAL ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s, border-color 0.3s;
    mix-blend-mode: difference;
    display: none;
    /* Disabled custom cursor by default to prevent issues */
}

.cursor.hovering {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: transparent;
}

/* ---- KEYFRAMES ---- */
@keyframes textUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ---- TYPOGRAPHY ---- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.text-outline {
    color: rgba(255, 255, 255, 0.15);
    font-weight: 900;
}

a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

button {
    cursor: pointer;
}

/* ---- LAYOUT ---- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 120px 0;
    position: relative;
}

/* ---- NAVBAR ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: transparent;
    z-index: 1000;
    transition: background var(--transition-normal), backdrop-filter var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1100px;
    /* Daha derli toplu kompakt yapi */
    gap: 60px;
    /* Linkler ve Logo arasi simetrik esit bosluk */
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    position: relative;
}

.nav-group {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
    transition: color var(--transition-normal);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--accent);
    transition: width var(--transition-normal);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    flex-shrink: 0;
    padding: 0 20px;
}

.nav-logo img {
    height: 80px;
    /* Logoyu biraz daha büyük, iddialı yapıyoruz */
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-normal), filter var(--transition-normal);
    /* Logo siyah renkte ise beyaz yapmak, ya da beyaz arkaplanı siyah yapmak için invert(1) ekliyoruz. 
       Karanlık temaya (siyah bg) doğrudan kaynaşmasını sağlar. */
    filter: invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
    mix-blend-mode: screen;
    /* Siyah arkaplanı şeffaf hale getirir */
}

.nav-logo:hover img {
    transform: scale(1.05);
    /* absolute pozisyonlamadaki hatalı transform iptal */
    filter: invert(1) drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    width: 30px;
    height: 20px;
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.mobile-menu-btn .bar {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    left: 0;
    transition: var(--transition-normal);
}

.mobile-menu-btn .bar:nth-child(1) {
    top: 0;
}

.mobile-menu-btn .bar:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-btn .bar:nth-child(3) {
    bottom: 0;
}

.mobile-menu-btn.active .bar:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.mobile-menu-btn.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .bar:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transform: translateY(-100%);
    transition: transform var(--transition-slow);
}

.mobile-nav.open {
    transform: translateY(0);
}

.mobile-link {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.noise-overlay {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 2;
}

.gradient-sphere {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    filter: blur(60px);
}

.hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 8rem);
    display: flex;
    flex-direction: column;
    line-height: 0.9;
    margin-bottom: 30px;
}

.reveal-text {
    display: inline-block;
    animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform: translateY(30px);
    opacity: 0;
}

.reveal-text:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 50px;
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.btn {
    position: relative;
    display: inline-flex;
    padding: 18px 40px;
    background: #fff;
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #fff;
    /* Tutarlilik icin base border */
}

/* Sadece hero butonu yuklenirken animasyon alsin */
.hero .btn {
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

.btn-text {
    position: relative;
    z-index: 2;
    transition: color var(--transition-normal);
}

.btn-hover-layer {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #222;
    z-index: 1;
    transition: top var(--transition-normal) cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover .btn-hover-layer {
    top: 0;
}

.btn:hover .btn-text {
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-outline .btn-hover-layer {
    background: #fff;
}

.btn-outline:hover .btn-text {
    color: #000;
}

/* SCROLL PROMPT */
.scroll-prompt {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}

.scroll-text {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    writing-mode: vertical-rl;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--text-secondary) 50%, transparent 50%);
    background-size: 100% 200%;
    animation: scrollLine 2s infinite linear;
}

/* ---- GAMES SECTION ---- */
.section-title {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 60px;
    line-height: 1;
}

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

.game-card {
    position: relative;
}

.game-image-container {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
    background: #111;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #050505, #111111);
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.game-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.game-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    transition: color var(--transition-normal);
}

.game-card:hover .game-info h3 {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.game-info p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.game-link {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.game-link .arrow {
    transition: transform 0.3s ease;
}

.game-card:hover .game-link .arrow {
    transform: translateX(5px);
}

/* ---- ABOUT SECTION ---- */
.about-section {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: radial-gradient(circle at right, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0) 50%);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.lead-text {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 300;
    line-height: 1.4;
    margin-bottom: 30px;
}

.sub-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 50px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
}

.stat-number {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.about-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
}

.visual-box {
    position: absolute;
    inset: 20px 0 0 20px;
    background: #111;
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    z-index: 2;
}

.visual-box-outline {
    position: absolute;
    inset: 0 20px 20px 0;
    border: 1px solid var(--border-color);
    z-index: 1;
}

/* ---- CAREERS SECTION ---- */
.careers-section {
    background: #050505;
}

.careers-header {
    text-align: center;
    margin-bottom: 60px;
}

.job-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.job-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: background var(--transition-normal);
}

.job-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.job-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.job-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.job-apply-btn {
    padding: 12px 30px;
    font-size: 0.8rem;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background-color: #111;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 500px;
    padding: 40px;
    border-radius: 4px;
    position: relative;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    color: var(--text-secondary);
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--text-primary);
}

#modal-job-title {
    margin-bottom: 30px;
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: #000;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    border-radius: 2px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-primary);
}

.form-group textarea {
    resize: vertical;
}

.admin-link {
    opacity: 0.1;
    transition: opacity 0.3s;
    margin-left: 10px;
}

.admin-link:hover {
    opacity: 1;
}

/* ---- FOOTER ---- */
.footer {
    padding: 120px 0 40px;
    background: #050505;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 80px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 60px;
}

.footer-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo-img {
    height: 60px;
    opacity: 0.5;
    transition: opacity 0.3s;
    filter: invert(1);
    mix-blend-mode: screen;
}

.footer-logo-img:hover {
    opacity: 1;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ---- KEYFRAMES ---- */
@keyframes textUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

@keyframes scrollLine {
    0% {
        background-position: 0 -100%;
    }

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

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .nav-group {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-title {
        font-size: 3.5rem;
    }
}