:root {
    --bg-color: #050505;
    --text-color: #00ff41; /* Klasik Terminal Yeşili */
    --accent-color: #008f11;
    --font-main: 'JetBrains Mono', monospace;
    --section-padding: 8rem 2rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.8;
    overflow-x: hidden;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.2);
}

/* CRT Scanline Effect */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%,
        rgba(0, 0, 0, 0.1) 50%
    ), linear-gradient(
        90deg,
        rgba(255, 0, 0, 0.03),
        rgba(0, 255, 0, 0.01),
        rgba(0, 0, 255, 0.03)
    );
    background-size: 100% 4px, 3px 100%;
    z-index: 999;
    pointer-events: none;
    opacity: 0.3;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    /* 90s Pixel Art Hacker Aesthetic Background */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)), 
                url('background.gif');
    background-size: 100% 100%;
    background-position: center;
    image-rendering: pixelated; /* Pixelliği vurgular */
}

h1 {
    font-size: 6vw;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 0.5rem;
    color: #fff;
    text-transform: uppercase;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.8;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.2rem 1rem;
}

/* Nav */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid var(--accent-color);
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--text-color);
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--text-color);
}

.music-btn {
    background: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    cursor: pointer;
    margin-left: 2rem;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.music-btn.playing {
    background: var(--text-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--text-color);
}

/* Glitch Effect - Back to Aggressive 90s style */
.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00ff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00ffff;
    animation: glitch-anim2 1s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    100% { clip: rect(62px, 9999px, 43px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(10px, 9999px, 85px, 0); }
    100% { clip: rect(70px, 9999px, 23px, 0); }
}

/* Sections */
.section {
    padding: var(--section-padding);
    background: #000;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    border-left: 5px solid var(--text-color);
    padding-left: 1rem;
}

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

.project-card {
    padding: 2rem;
    border: 1px solid var(--accent-color);
    background: rgba(0, 255, 65, 0.02);
    transition: all 0.3s ease;
}

.project-card:hover {
    background: rgba(0, 255, 65, 0.05);
    border-color: var(--text-color);
    transform: scale(1.02);
}

.cta-button {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.7rem;
    text-transform: uppercase;
    transition: all 0.3s;
}

.cta-button:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

.project-card.youtube {
    border-left: 5px solid #ff0000;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: matrix(1, 0, 0, 1, 0, 20);
    transition: all 0.5s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: matrix(1, 0, 0, 1, 0, 0);
}

footer {
    padding: 4rem 2rem;
    text-align: center;
    font-size: 0.7rem;
    color: var(--accent-color);
    border-top: 1px solid var(--accent-color);
}
