body {
    background-color: #0D0D0D;
    color: #00FF41;
    font-family: 'IBM Plex Sans', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    scroll-behavior: smooth;
    font-size: 16px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #1A1A1A;
    border-bottom: 2px solid #00FF41;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo h1 {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(1.5rem, 5vw, 1.8rem);
    margin: 0;
    color: #FF0055;
    text-shadow: 0 0 10px rgba(255, 0, 85, 0.5);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #00FF41;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
}

.nav-menu a {
    color: #00FF41;
    text-decoration: none;
    margin: 0 1rem;
    font-size: clamp(0.9rem, 3vw, 1rem);
    transition: color 0.3s, transform 0.3s;
}

.nav-menu a:hover {
    color: #FF0055;
    transform: translateY(-2px);
}

.section {
    padding: 3rem 1rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem;
}

h2 {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(1.8rem, 6vw, 2.2rem);
    margin-bottom: 1.2rem;
    color: #00FF41;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
}

p {
    font-size: clamp(0.9rem, 3.5vw, 1rem);
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #FF0055, #FF4081);
    color: #0D0D0D;
    padding: 0.7rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: clamp(0.9rem, 3vw, 1rem);
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 0, 85, 0.5);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.post-card {
    background-color: #1A1A1A;
    border: 1px solid #00FF41;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 255, 65, 0.3);
}

.post-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(0.9rem, 3vw, 1rem);
    color: #FF0055;
    padding: 1rem;
    text-align: center;
}

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

.generator-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

input, button {
    padding: 0.7rem;
    font-family: 'IBM Plex Sans', sans-serif;
    background-color: #1A1A1A;
    color: #00FF41;
    border: 1px solid #00FF41;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: clamp(0.85rem, 3vw, 0.95rem);
}

input:focus, button:hover {
    border-color: #FF0055;
    box-shadow: 0 0 8px rgba(255, 0, 85, 0.5);
}

button {
    background: linear-gradient(45deg, #00FF41, #00E676);
    color: #0D0D0D;
    cursor: pointer;
    font-weight: bold;
}

.meme-output {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(1rem, 3.5vw, 1.2rem);
    color: #FF0055;
    margin-top: 1rem;
}

.story {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(0.9rem, 3.5vw, 1.1rem);
    text-align: center;
    max-width: 90%;
    margin: 0 auto;
    line-height: 1.7;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

footer {
    text-align: center;
    padding: 1.5rem;
    background-color: #1A1A1A;
    border-top: 2px solid #00FF41;
}

footer p {
    font-size: clamp(0.8rem, 3vw, 0.9rem);
}

.chat-container {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 1000;
}

.chat-toggle {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #FF0055, #FF4081);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0D0D0D;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 0, 85, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    font-size: clamp(0.9rem, 3vw, 1rem);
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(255, 0, 85, 0.6);
}

.chat-window {
    width: 350px;
    height: 500px;
    background: linear-gradient(135deg, #1A1A1A, #2A2A2A);
    border: 2px solid #00FF41;
    border-radius: 15px;
    display: none;
    flex-direction: column;
    margin-top: 10px;
    box-shadow: 0 8px 24px rgba(0, 255, 65, 0.2);
}

.chat-window.open {
    display: flex;
    animation: slideIn 0.3s ease;
}

.chat-settings {
    display: flex;
    flex-direction: column;
    padding: 10px;
    border-bottom: 1px solid #00FF41;
    gap: 8px;
    background: linear-gradient(135deg, #1A1A1A, #2A2A2A);
}

.chat-settings::before {
    content: "🤖 Model Seçimi";
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    color: #FF0055;
    text-align: center;
    margin-bottom: 5px;
}

#model-select {
    padding: 10px 12px;
    background-color: #1A1A1A;
    color: #00FF41;
    border: 2px solid #00FF41;
    border-radius: 12px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: clamp(0.85rem, 3vw, 0.95rem);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 255, 65, 0.1);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300FF41' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 35px;
}

#model-select:hover {
    border-color: #FF0055;
    box-shadow: 0 4px 12px rgba(255, 0, 85, 0.3);
    transform: translateY(-1px);
}

#model-select:focus {
    border-color: #FF0055;
    box-shadow: 0 0 12px rgba(255, 0, 85, 0.6);
    outline: none;
    background-color: #2A2A2A;
}

#model-select option {
    background-color: #1A1A1A;
    color: #00FF41;
    padding: 8px;
}

.chat-messages {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    font-family: 'Share Tech Mono', monospace;
    color: #00FF41;
    scrollbar-width: thin;
    scrollbar-color: #00FF41 #1A1A1A;
    font-size: clamp(0.85rem, 3vw, 0.95rem);
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #1A1A1A;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #00FF41;
    border-radius: 3px;
}

.chat-message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    max-width: 80%;
    word-wrap: break-word;
    font-size: clamp(0.85rem, 3vw, 0.95rem);
}

.user-message {
    background: linear-gradient(45deg, #00FF41, #00E676);
    color: #0D0D0D;
    align-self: flex-end;
}

.ai-message {
    background: linear-gradient(45deg, #FF0055, #FF4081);
    color: #0D0D0D;
    align-self: flex-start;
}

.chat-input-container {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    border-top: 1px solid #00FF41;
    gap: 5px;
}

#chat-input {
    flex: 1;
    min-width: 180px;
    padding: 8px 12px;
    background-color: #0D0D0D;
    color: #00FF41;
    border: 1px solid #00FF41;
    border-radius: 8px;
    font-size: clamp(0.85rem, 3vw, 0.95rem);
}

#chat-send, #chat-clear {
    padding: 8px 12px;
    background: linear-gradient(45deg, #00FF41, #00E676);
    color: #0D0D0D;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s;
    font-size: clamp(0.85rem, 3vw, 0.95rem);
}

#chat-send:hover, #chat-clear:hover {
    transform: scale(1.05);
}

#chat-clear {
    background: linear-gradient(45deg, #FF0055, #FF4081);
}

@media (max-width: 768px) {
    body { font-size: 14px; }
    .hamburger { display: block; }
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #1A1A1A;
        padding: 1rem;
    }
    .nav-menu.open { display: flex; }
    .nav-menu a { margin: 0.5rem 0; font-size: clamp(1rem, 4vw, 1.2rem); }
    .section { padding: 2rem 0.8rem; }
    .container { padding: 0 0.8rem; }
    .post-card img { height: 150px; }
    .chat-container { bottom: 10px; right: 10px; }
    .chat-window { width: calc(100vw - 20px); height: calc(100vh - 80px); max-width: 360px; }
    .chat-input-container { padding: 8px; }
    #chat-input { min-width: 140px; }
    #chat-send, #chat-clear { min-width: 70px; }
    .story { max-width: 95%; font-size: clamp(0.85rem, 3.2vw, 0.95rem); }
}

@media (max-width: 480px) {
    .logo h1 { font-size: clamp(1.2rem, 4.5vw, 1.5rem); }
    h2 { font-size: clamp(1.5rem, 5vw, 1.8rem); }
    p { font-size: clamp(0.8rem, 3.2vw, 0.9rem); }
    .cta-button { font-size: clamp(0.8rem, 3vw, 0.9rem); padding: 0.6rem 1.2rem; }
    .overlay { font-size: clamp(0.8rem, 2.8vw, 0.9rem); }
    .story { font-size: clamp(0.8rem, 3.2vw, 0.9rem); max-width: 100%; }
    footer p { font-size: clamp(0.7rem, 2.8vw, 0.8rem); }
}

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

.typewriter {
    overflow: hidden;
    border-right: 2px solid #00FF41;
    white-space: normal;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #00FF41; }
}

.glitch {
    animation: glitch 0.5s linear;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}