* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #0b0014;
    color: #ffffff;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.glitch-screen {
    position: fixed;
    inset: 0;
    background: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 999;
}

.glitch-logo {
    width: 120px;
    filter: drop-shadow(0 0 15px #c77dff);
    animation: shake 0.15s infinite;
}

.glitch {
    font-size: 64px;
    color: #c77dff;
    position: relative;
    animation: shake 0.15s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0.8;
}

.glitch::before {
    color: #ff00ff;
    transform: translate(-2px, 0);
    clip-path: inset(0 0 60% 0);
}

.glitch::after {
    color: #00ffff;
    transform: translate(2px, 0);
    clip-path: inset(40% 0 0 0);
}

@keyframes shake {
    0% { transform: translate(0); }
    25% { transform: translate(-2px, 1px); }
    50% { transform: translate(2px, -1px); }
    75% { transform: translate(-1px, -2px); }
    100% { transform: translate(1px, 2px); }
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: linear-gradient(90deg, #1a002b, #3a0066);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo {
    width: 36px;
    height: 36px;
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
    color: #c77dff;
}

.menu {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

.menu a {
    text-decoration: none;
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(199, 125, 255, 0.15);
    transition: 0.3s;
    display: inline-block;
    text-align: center;
    border: 2px solid rgba(199, 125, 255, 0.3);
    font-size: 16px;
    font-weight: bold;
    white-space: nowrap;
}

.menu a:hover:not(.active) {
    background: rgba(199, 125, 255, 0.3);
    border-color: #c77dff;
    transform: translateY(-2px);
}

.menu a.active {
    background: #c77dff;
    color: #0b0014;
    border-color: #c77dff;
    cursor: not-allowed;
    pointer-events: none;
}

.content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: calc(100vh - 70px);
    transition: 1s;
}

.content h1 {
    font-size: 36px;
    color: #e0aaff;
    word-wrap: break-word;
    padding: 0 20px;
}

.content h2 {
    word-wrap: break-word;
    padding: 0 20px;
}

.content p {
    word-wrap: break-word;
    padding: 0 20px;
    max-width: 90%;
}

.hidden {
    opacity: 0;
}

@media (max-width: 600px) {
    body {
        overflow-x: hidden;
    }

    .glitch {
        font-size: 32px;
    }

    .glitch-logo {
        width: 80px;
    }

    .top-bar {
        flex-direction: column;
        gap: 10px;
        padding: 12px 15px;
    }

    .logo-area img {
        max-width: 120px;
        height: auto;
    }

    .menu {
        gap: 6px;
        flex-wrap: wrap;
    }

    .menu a {
        padding: 6px 10px;
        font-size: 12px;
    }

    .content {
        height: calc(100vh - 100px);
        padding: 20px 10px;
    }

    .content h1 {
        font-size: 28px;
        margin-top: 10px;
    }

    .content h2 {
        font-size: 24px;
    }

    .content p {
        font-size: 16px;
        line-height: 1.5;
    }
}


/* -------- PROJECT BUTTONS -------- */
.button-container {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
    align-items: center;
}

.project-button {
    padding: 20px 50px;
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    border: 2px solid #c77dff;
    border-radius: 12px;
    background: rgba(199, 125, 255, 0.15);
    transition: all 0.3s;
    display: inline-block;
    cursor: pointer;
    font-family: inherit;
}

button.project-button {
    text-decoration: none;
}

.project-button:hover {
    background: #c77dff;
    color: #0b0014;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(199, 125, 255, 0.5);
}

.project-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: rgba(199, 125, 255, 0.5);
}

.project-button:disabled:hover {
    background: rgba(199, 125, 255, 0.15);
    color: #ffffff;
    transform: none;
    box-shadow: none;
}

@media (max-width: 600px) {
    .button-container {
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
        width: 100%;
        padding: 0 20px;
    }
    
    .project-button {
        padding: 16px 30px;
        font-size: 18px;
        width: 100%;
        max-width: 300px;
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* -------- BACK BUTTON -------- */
.back-button {
    position: fixed;
    left: 20px;
    bottom: 20px;
    padding: 12px 24px;
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    border: 2px solid #c77dff;
    border-radius: 8px;
    background: rgba(199, 125, 255, 0.15);
    transition: all 0.3s;
    z-index: 1001;
}

.back-button:hover {
    background: #c77dff;
    color: #0b0014;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(199, 125, 255, 0.5);
}

@media (max-width: 600px) {
    .back-button {
        left: 15px;
        bottom: 15px;
        padding: 12px 20px;
        font-size: 16px;
        min-width: 80px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Küçük mobil cihazlar için ekstra optimizasyon */
@media (max-width: 400px) {
    .glitch {
        font-size: 28px;
    }

    .glitch-logo {
        width: 70px;
    }

    .content h1 {
        font-size: 24px;
    }

    .content h2 {
        font-size: 20px;
    }

    .project-button {
        padding: 14px 25px;
        font-size: 16px;
    }

    .back-button {
        padding: 10px 16px;
        font-size: 14px;
        min-width: 70px;
    }

    .slider-container {
        height: 45px;
    }

    .slider-item {
        font-size: 12px;
    }

    .menu {
        gap: 5px;
    }

    .menu a {
        padding: 5px 8px;
        font-size: 11px;
    }
}

/* Tablet uyumluluk */
@media (min-width: 601px) and (max-width: 1024px) {
    .glitch {
        font-size: 48px;
    }

    .glitch-logo {
        width: 100px;
    }

    .content h1 {
        font-size: 32px;
    }

    .project-button {
        padding: 18px 40px;
        font-size: 22px;
    }

    .button-container {
        gap: 25px;
    }
}

/* Yatay mod (landscape) için optimizasyon */
@media (max-width: 900px) and (orientation: landscape) {
    .glitch-screen {
        gap: 15px;
    }

    .glitch {
        font-size: 36px;
    }

    .glitch-logo {
        width: 80px;
    }

    .content {
        height: calc(100vh - 80px);
        padding: 10px;
    }

    .content h1 {
        font-size: 24px;
        margin-top: 5px;
    }

    .content h2 {
        font-size: 20px;
        margin-top: -50px;
    }

    .button-container {
        margin-top: 20px;
        gap: 15px;
    }

    .project-button {
        padding: 12px 25px;
        font-size: 16px;
    }

    .slider-container {
        bottom: 70px;
        height: 45px;
    }

    .back-button {
        bottom: 10px;
        left: 10px;
    }

    .menu {
        gap: 5px;
    }

    .menu a {
        padding: 5px 8px;
        font-size: 11px;
    }
}
