:root {
    --bg-color: #0a0a0c;
    --surface-color: #111216;
    --surface-card: #16181e;
    --text-primary: #ffffff;
    --text-secondary: #90909a;
    --accent-gold: #d4af37;
    --accent-green: #00ff88;
    --code-font: 'Fira Code', monospace;
    --glass-border: rgba(212, 175, 55, 0.15);
}

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

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

/* Arka Plandaki Canlı Kod Yağmuru */
#codeCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.35;
}

h1, h2, h3, .logo { font-family: 'Syne', sans-serif; }
code, pre, .nav-num, .code-bracket { font-family: var(--code-font); }

.text-gold { color: var(--accent-gold); }
.code-bracket { color: var(--accent-gold); font-weight: bold; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* Header */
.fixed-header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 20px 0; transition: all 0.4s ease;
}
.fixed-header.scrolled {
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 0;
}
.navbar { display: flex; justify-content: space-between; align-items: center; }
.logo a { color: #fff; text-decoration: none; font-size: 20px; font-weight: 800; }
.nav-links { list-style: none; display: flex; gap: 25px; align-items: center; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 13px; }
.nav-links a:hover { color: var(--accent-gold); }
.nav-num { color: var(--accent-gold); margin-right: 4px; }
.btn-outline { border: 1px solid var(--accent-gold); padding: 8px 16px; border-radius: 4px; color: var(--accent-gold) !important; }

/* Hero Section */
.hero {
    min-height: 85vh; display: flex; align-items: center; justify-content: center;
    text-align: center; padding-top: 100px;
}
.terminal-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: #181920; padding: 6px 14px; border-radius: 20px;
    border: 1px solid var(--glass-border); margin-bottom: 25px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; }
.red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: #27c93f; }
.terminal-title { color: var(--text-secondary); font-family: var(--code-font); font-size: 11px; }

.hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.cursor { font-family: var(--code-font); animation: blink 0.8s infinite; color: var(--accent-gold); }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-subtext code {
    background: rgba(255, 255, 255, 0.04); padding: 10px 18px; border-radius: 6px;
    color: var(--accent-green); font-size: 0.9rem; border: 1px solid rgba(0, 255, 136, 0.2);
    display: inline-block; margin-bottom: 30px; max-width: 90%; word-break: break-word;
}

.btn-primary {
    display: inline-block; background: var(--accent-gold); color: #000;
    text-decoration: none; padding: 14px 30px; font-weight: 700;
    font-family: var(--code-font); border-radius: 4px; transition: 0.3s;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 0 20px rgba(212, 175, 55, 0.4); }

/* Mac Terminal Window Container */
.code-window-section { margin: 40px auto 80px; }
.mac-window {
    background: var(--surface-color); border-radius: 8px;
    border: 1px solid var(--glass-border); overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}
.mac-header {
    background: #181a20; padding: 10px 15px; display: flex;
    align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mac-buttons { display: flex; gap: 8px; }
.btn-close, .btn-min, .btn-max { width: 12px; height: 12px; border-radius: 50%; }
.btn-close { background: #ff5f56; } .btn-min { background: #ffbd2e; } .btn-max { background: #27c93f; }
.mac-title { color: var(--text-secondary); font-family: var(--code-font); font-size: 12px; margin: 0 auto; }
.mac-body { padding: 25px; font-family: var(--code-font); font-size: 14px; overflow-x: auto; color: #d6deeb; }

/* Code Highlighting */
.token-keyword { color: #c792ea; font-weight: bold; }
.token-string { color: #ecc48d; }
.token-function { color: #82aaff; }
.token-comment { color: #637777; italic; }

/* Projects Grid */
.portfolio { padding: 60px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.2rem; }
.section-header .line { height: 2px; width: 60px; background: var(--accent-gold); margin: 15px auto 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.luxury-card {
    background: var(--surface-card); border: 1px solid var(--glass-border);
    border-radius: 8px; padding: 25px; transition: 0.3s; position: relative;
}
.luxury-card:hover { transform: translateY(-5px); border-color: var(--accent-gold); }

.card-header-tech { display: flex; gap: 10px; margin-bottom: 15px; }
.tech-tag {
    background: rgba(212, 175, 55, 0.1); color: var(--accent-gold);
    font-family: var(--code-font); font-size: 11px; padding: 4px 8px; border-radius: 4px;
}
.card-content h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card-content p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 20px; }
.card-footer-code code { color: #555; font-size: 0.8rem; }

/* Footer */
.luxury-footer {
    background: var(--surface-color); padding: 50px 0 20px;
    border-top: 1px solid var(--glass-border); margin-top: 80px;
}
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; margin-bottom: 30px; }
.footer-links { list-style: none; display: flex; gap: 20px; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent-gold); }
.footer-bottom { text-align: center; color: #444; font-size: 0.8rem; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; }

/* Scroll Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2rem; }
}