:root {
    --bg-color: #111111;
    --text-color: #e0e0e0;
    --text-secondary: #888888;
    --accent-color: #bb86fc;
    --glass-bg: rgba(30, 30, 30, 0.85);
    --border-color: rgba(255, 255, 255, 0.15);
    --font-family: 'Sora', sans-serif;
}

.light-mode {
    --bg-color: #f5f5f5;
    --text-color: #222222;
    --text-secondary: #777777;
    --accent-color: #6200ee;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --border-color: rgba(0, 0, 0, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-color);
    font-family: var(--font-family);
    font-weight: 300;
    transition: background-color 0.3s, color 0.3s;
    cursor: none;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: -2;
    pointer-events: none;
}

#rainCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allow clicks/interactions to pass through */
    z-index: -1; /* Behind content, above body::before */
}

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}


/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: opacity 0.8s ease-out;
}

.loading-container {
    text-align: center;
}

.loading-logo {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.loading-text {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-weight: 300;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #00f5ff);
    width: 0%;
    animation: loading 5s ease-in-out;
}

.loading-ip-notice {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    opacity: 0.8;
    text-align: center;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes loading {
    0% { width: 0%; }
    100% { width: 100%; }
}

a, button, span, .lang-option {
    cursor: none !important;
}

#entry-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--bg-color);
    display: flex; justify-content: center; align-items: center;
    z-index: 1000; cursor: none !important; transition: opacity 0.8s ease-out;
}
#entry-overlay p { font-size: 1.2rem; color: var(--text-secondary); }

#cursor-follower {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 1px solid var(--text-secondary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1001;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s, background-color 0.4s, border-color 0.4s, transform 0.2s;
    transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
    will-change: transform;
}





header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 100; 
    padding: 1.5rem 2rem;
    background-color: var(--glass-bg);
    backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
nav { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; }
.logo { font-size: 1.5rem; font-weight: 600; }
#theme-toggle { background: none; border: none; color: var(--text-secondary); font-size: 1.2rem; transition: color 0.3s, transform 0.3s; }
.lang-switcher {
    display: flex;
    gap: 0.5rem;
    margin-right: 1rem;
}

.lang-option {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: none !important;
    transition: color 0.3s;
}

.lang-option:hover {
    color: var(--text-color);
}

.lang-option.active {
    color: var(--accent-color);
}

main { display: flex; flex-direction: column; align-items: center; padding: 0 2rem; }
section {
    width: 100%;
    max-width: 700px;
    text-align: center;
    padding: 6rem 0;
}
section:not(#hero) { border-top: 1px solid var(--border-color); }

h2 { font-size: 1.2rem; font-weight: 600; color: var(--accent-color); margin-bottom: 2rem; letter-spacing: 2px; text-transform: uppercase; }

.content-panel {
    background-color: var(--glass-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

#hero { padding-top: 12rem; }
.hero-img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 2rem; box-shadow: 0 0 30px rgba(0,0,0,0.2); }
#hero h1 { font-size: 3.5rem; font-weight: 600; margin-bottom: 0.5rem; }
#hero .subtitle { font-size: 1.2rem; color: var(--text-secondary); }
.location-info { font-size: 1rem; color: var(--text-secondary); margin-top: 1rem; }
.location-info i { margin-right: 0.5rem; }

#about p { font-size: 1.2rem; line-height: 1.8; color: var(--text-secondary); }

.typing-cursor {
    animation: blink 1s infinite;
    color: var(--accent-color);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

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

.skill-item {
    text-align: left;
}

.skill-name {
    display: block;
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #00f5ff);
    width: 0%;
    border-radius: 10px;
    transition: width 2s ease-in-out;
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Etiketler (Diller) */
.tag-container { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.tag-container span { background-color: rgba(0,0,0,0.2); border: 1px solid var(--border-color); padding: 0.6rem 1.2rem; border-radius: 30px; font-size: 0.9rem; transition: all 0.3s; }
.tag-container span:hover { background-color: var(--accent-color); color: var(--bg-color); border-color: var(--accent-color); font-weight: 400; }

/* Projeler */
.projects-list { display: flex; flex-direction: column; gap: 2rem; }
.project-item {
    background-color: var(--glass-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 10px;
    text-align: left;
    transition: all 0.3s;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
}
.project-item:hover {
    transform: scale(1.03);
    border-color: var(--accent-color);
    background-color: var(--glass-bg);
    box-shadow: 0 8px 35px rgba(187, 134, 252, 0.2);
}
.project-item h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.5rem; }
.project-item p { color: var(--text-secondary); margin-bottom: 1.5rem; }
.project-item a { color: var(--accent-color); text-decoration: none; font-weight: 600; }
.project-item a:hover { text-decoration: underline; }

/* İletişim */
.social-links { display: flex; gap: 2rem; justify-content: center; }
.social-links a { color: var(--text-secondary); text-decoration: none; font-size: 1.2rem; transition: color 0.3s; }
.social-links a:hover { color: var(--accent-color); }


/* Footer */
footer { text-align: center; padding: 4rem 2rem; color: var(--text-secondary); font-size: 0.9rem; border-top: 1px solid var(--border-color); }

/* Animasyonlar */
.scroll-reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; will-change: transform, opacity; }
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }

/* Spinner */
.spinner { border: 3px solid var(--border-color); width: 30px; height: 30px; border-radius: 50%; border-left-color: var(--accent-color); animation: spin 1s linear infinite; margin: 2rem auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 768px) {
    section { padding: 6rem 0; }
    #hero { padding-top: 10rem; }
    #hero h1 { font-size: 2.5rem; }
    .hero-img { width: 100px; height: 100px; }
    .content-panel { padding: 2rem; }
}
